Complete crash when requesting a second wild-card cert from GoDaddy with DNS
See original GitHub issueChecklist
- Have you pulled and found the error with
jc21/nginx-proxy-manager:latest
docker image? Yes - Are you sure you’re not using someone else’s docker image? Yes
- Have you searched for similar issues (both open and closed)? Yes - Sort of the same exists but this gives explicit steps and the last one was closed with no repro
Describe the bug If you try and add a second wild card cert from the SSL tab using go-daddy (not sure if it does this with others) you’ll get an internal error about an npm folder in /letsencrypt/live not existing. Anything else you try and do in the session will error although the existing proxies will continue to function. If you restart the container, it will crash on boot. The only way to work around is to copy one of the other npm folders into the one it’s looking for in the log and then it will start.
Nginx Proxy Manager Version 2.9.7
To Reproduce Steps to reproduce the behavior:
- Go to SSL
- Click on Add SSL Cert
- Add wildcard (*.example.com) and choose go daddy and fill in secret and key click create.
- Add a second with the same information for a different domain (i.e. *.example2.com), click create => error as described.
Expected behavior Should add the second certificate without error and not bork nginx manager entirely.
Operating System Debian Linux
Additional context ❯ /data/nginx/redirection_host/1.conf nginx: [emerg] cannot load certificate “/etc/letsencrypt/live/npm-8/fullchain.pem”: BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/npm-8/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (1 by maintainers)
When I applied for a wildcard certificate, there was an error error, and after I tried to restart, there was a nginx: [emerg] cannot load certificate.
The issue was caused by a proxy_host that was assigned an ssl certificate that had been deleted. I managed to fix it by navigating to the data volume and into /nginx/proxy_host, and deleting the *.conf files that were referring to the deleted certificate.