Howto resolve nginx proxy manager failed to renew ssl

 

I’ve been using Nginx Proxy Manager for a couple of years now. It provides free SSL with Let’s Encrypt, is designed with security in mind, and is perfect for home networks.

Today, I encountered an issue where Nginx Proxy Manager failed to renew my SSL certificate using Let’s Encrypt. This was actually a problem I faced years ago, but I was too lazy to check the logs.

However, today, I had a “mystical sign from the sky” telling me to read the logs! 😀 So, I checked:

cat /tmp/letsencrypt-log/letsencrypt.log

The issue turned out to be quite silly—Nginx Proxy Manager couldn’t find the directory:

.well-known/acme-challenge/

The fix was simple! I accessed the Docker container using:

docker exec -it <container_name> sh

Then, I manually created the missing directory inside the container:

mkdir -p .well-known/acme-challenge/

After that, the SSL renewal function worked perfectly!

I hope this helps anyone facing the same issue.

Happy coding! 🚀

Related: Howto setting wordpress working under proxy nginx.

Related: How to forward proxy nginx to custom port.


Discover more from Susiloharjo

Subscribe to get the latest posts sent to your email.

Discover more from Susiloharjo

Subscribe now to keep reading and get access to the full archive.

Continue reading