Hello,
I am trying to renew my certificates and I am getting the http404 error. If I am honest I don’t know what I am really doing or how I got it working in the first place.
Going through the posts with similar errors, I realised that I couldn’t find the acme-challenge folder, so I created one and now I can do a /.well-known/acme-challenge/success.html test.
The only other thing I can think of is that my nginx.conf file might have something wrong with it
Please can you help point me in the right direction.
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: www.nchanga.com
I ran this command: certbot-auto renew
It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/nchanga.com.conf
Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for nchanga.com
http-01 challenge for www.nchanga.com
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (nchanga.com) from /etc/letsencrypt/renewal/nchanga.com.conf produced an unexpected error: Failed authorization procedure. www.nchanga.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.nchanga.com/.well-known/acme-challenge/8OA3U2GkAuPFT09FUJ5_Y_fasOTw0L-TDH7V3vqKT0Y: "
404 Not Found
", nchanga.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://nchanga.com/.well-known/acme-challenge/4_qvplS6NdxyAL1od5smyyV3u88dQJ7BE640ZmDNl0A: " 404 Not Found
404 Not Found
". Skipping. All renewal attempts failed. The following certs could not be renewed: /etc/letsencrypt/live/nchanga.com/fullchain.pem (failure)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/nchanga.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: www.nchanga.com
404 Not Found
Type: unauthorized
Detail: Invalid response from
http://www.nchanga.com/.well-known/acme-challenge/8OA3U2GkAuPFT09FUJ5_Y_fasOTw0L-TDH7V3vqKT0Y:
"404 Not Found
"Domain: nchanga.com
404 Not Found
Type: unauthorized
Detail: Invalid response from
http://nchanga.com/.well-known/acme-challenge/4_qvplS6NdxyAL1od5smyyV3u88dQJ7BE640ZmDNl0A:
"404 Not Found
"To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version): nginx
The operating system my web server runs on is (include version): OSMC
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):