mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Let's encrypt Certificates are failing nginx service #396
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 @logixtreeCode on 5/28/2023
CloudPanel version(s) affected
6.0.8
Description
After generating certificate for panel domain and site's domain. Nginx failed up on restart. Logs suggesting following:
How to reproduce
After installing Let's encrypt SSL, try saving vhost settings again.
Possible Solution
After checking the certificate, I found there are two new line characters \n which were not supposed to be there.
Additional Context
Vhost is not valid, error message: nginx: [emerg] cannot load certificate "/etc/nginx/ssl-certificates/custom_domain.crt": PEM_read_bio_X509() failed (SSL: error:04800066:PEM routines::bad end line) nginx: configuration file /etc/nginx/nginx.conf test failed