Hi Team,
I need help on SSL certificate renewal. I have installed Let's Encrypt SSL certificate in my web application. https://www.worldtrendshub.com/
It was working fine after 90 days my certificate renewal failed, I have tried to renew it but getting below error. I have checked other user comment for same issue but no Luck. I have IPV4 and IPV6 IP enabled with A and AAAA record respectively. No firewall restriction still getting error on renewal.
I need help on this.
sudo certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/worldtrendshub.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Renewing an existing certificate for worldtrendshub.com and www.worldtrendshub.com
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: worldtrendshub.com
Type: unauthorized
Detail: 2a02:4780:12:14d0::1: Invalid response from http://worldtrendshub.com/.well-known/acme-challenge/2yDA_29bpnNWfgEerqo0-jv1ZMEyr1Nb9m7WVKmzw4s: 404
Domain: www.worldtrendshub.com
Type: unauthorized
Detail: 2a02:4780:12:14d0::1: Invalid response from http://www.worldtrendshub.com/.well-known/acme-challenge/Xmwv1Vfmqi6XRtlubQfl3JHupU871ocqTNpTLpNbsGw: 404
Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.
Failed to renew certificate worldtrendshub.com with error: Some challenges have failed.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/worldtrendshub.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
Your thread is more suitable for the Help section instead of the Issuance Tech category. I have moved your thread accordingly.
If you would have opened this thread in the Help section, you would have been provided with a questionnaire. Please fill out the questionnaire below to the best of your knowledge:
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. crt.sh | 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:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/worldtrendshub.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Renewing an existing certificate for worldtrendshub.com and www.worldtrendshub.com
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: worldtrendshub.com
Type: unauthorized
Detail: 2a02:4780:12:14d0::1: Invalid response from http://worldtrendshub.com/.well-known/acme-challenge/uBz6_8oq90_bnz0wXLZRbMNkNL9xvDOXKnXmWKL7N7w: 404
Domain: www.worldtrendshub.com
Type: unauthorized
Detail: 2a02:4780:12:14d0::1: Invalid response from http://www.worldtrendshub.com/.well-known/acme-challenge/zN8K0QfqusINc-GPURZxAI7eL5kVXqSuxi7TlO_OXoI: 404
Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.
Failed to renew certificate worldtrendshub.com with error: Some challenges have failed.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/worldtrendshub.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My web server is (include version): NGINX 1.18
The operating system my web server runs on is (include version): Ubuntu 22.04
My hosting provider, if applicable, is: Hostinger
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): No
hmm...
I don't use varnish.
So, anything I say about that is just me guessing.
I think Varnish might not be forwarding the HTTP ACME challenge requests.
One possible way around that:
Try redirecting the ACME challenge requests to HTTPS
I see both Varnish and nginx on via HTTPS:
curl -Ii https://worldtrendshub.com
HTTP/1.1 200 OK
Server: nginx/1.18.0 (Ubuntu) <<<<<<<<<<<<<<<<<<<<<<<<<
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Cache-Control: max-age=86400, public
Date: Wed, 01 Nov 2023 07:47:51 GMT
Content-language: en
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Wed, 01 Nov 2023 07:47:51 GMT
ETag: "1698824871"
Vary: X-Bin
X-Grace: 10
X-TTL: 86400
X-Adv-Varnish: Cache-enabled <<<<<<<<<<<<<<<<<<<<<<<<<
Did you move nginx from port 80 to port 8080 to make room for varnish on port 80, after getting the initial certificate? If so, you might need to add --http-01-port 8080
edit: never mind, I see you got it working already