mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Strange \n\n inside the lets encrypt requested certificate file used for custom domain and sites. #386
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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!