Renewal of SSL Certificates

I need to renewal of my certificates.
When I run certbot-auto renew command, i got following error:

Attempting to renew cert from /etc/letsencrypt/renewal/test.com.conf produced an unexpected error: Failed authorization procedure. test.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://test.com/.well-known/acme-challenge/P9OibXCPZdSHX_NJ-8Y_AHGz5PKh3m0fHpKgLBjgGlE: "

404 Not Found

404 Not Found


", www.test.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.test.com/.well-known/acme-challenge/R0OX3wWTwhRfn-KED8Mz9M0lJLAiUety1PmuumOH7wA: " 404 Not Found

404 Not Found


". Skipping.

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/test.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)

Please help me to renew the certificates.

Show us the contents of /etc/letsencrypt/renewal/test.com.conf and the relevant webserver configuration for this domain.

Here is the content of /etc/letsencrypt/renewal/confinote.com.conf

renew_before_expiry = 30 days

version = 0.12.0
cert = /etc/letsencrypt/live/confinote.com/cert.pem
privkey = /etc/letsencrypt/live/confinote.com/privkey.pem
chain = /etc/letsencrypt/live/confinote.com/chain.pem
fullchain = /etc/letsencrypt/live/confinote.com/fullchain.pem
archive_dir = /etc/letsencrypt/archive/confinote.com

Options used in the renewal process

[renewalparams]
authenticator = webroot
installer = None
account = ff74e8aa3670583a7bf0f93a1485fbef
[[webroot_map]]
confinote.com = /usr/share/nginx/html
www.confinote.com = /usr/share/nginx/html

Thanks. You have probably changed your serverʼs root directory. To verify this, the contents of the config that configures nginx to serve confinote.com would be handy.

Thank you…
Yes my root directory was the problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.