Strange \n\n inside the lets encrypt requested certificate file used for custom domain and sites. #386

Closed
opened 2026-04-05 20:27:25 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @akubima on 6/12/2023

CloudPanel version(s) affected

2.3.0

Description

Hi, I hope you are okay.

I wanted to let you know that there is a strange "\n\n" in the middle of the SSL certificate file /etc/nginx/ssl-certificates/custom-domain.crt this happened after I tried to change the domain name for CloudPanel access which automatically requests SSL from lets encrypt. This made the NginX web server completely unusable until I manually fixed it by removing the "\n\n" in the SSL file and restarts the NginX.

image

How to reproduce

Create a custom domain to access the panel until it successfully requests SSL from letsencrypt and open /etc/nginx/ssl-certificates/custom-domain.crt, if the bug doesn't happen there might be something wrong with my server.

Possible Solution

Maybe changing a few lines of code will fix it.

Additional Context

Nope, have a great day, thanks!

*Originally created by @akubima on 6/12/2023* ### CloudPanel version(s) affected 2.3.0 ### Description Hi, I hope you are okay. I wanted to let you know that there is a strange "\n\n" in the middle of the SSL certificate file /etc/nginx/ssl-certificates/custom-domain.crt this happened after I tried to change the domain name for CloudPanel access which automatically requests SSL from lets encrypt. This made the NginX web server completely unusable until I manually fixed it by removing the "\n\n" in the SSL file and restarts the NginX. ![image](https://github.com/cloudpanel-io/cloudpanel-ce/assets/63215668/cc958250-99d3-4d09-ac7e-661f70292564) ### How to reproduce Create a custom domain to access the panel until it successfully requests SSL from letsencrypt and open /etc/nginx/ssl-certificates/custom-domain.crt, if the bug doesn't happen there might be something wrong with my server. ### Possible Solution Maybe changing a few lines of code will fix it. ### Additional Context Nope, have a great day, thanks!
Sign in to join this conversation.