I have a certificate which have just expired. I received notification emails for renewal, but I have it automated, or so I thought
I am getting this strange error:
# certbot renew --nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/mtailounie.net.conf
-------------------------------------------------------------------------------
Cert is due for renewal, auto-renewing...
Attempting to renew cert from /etc/letsencrypt/renewal/mtailounie.net.conf produced an unexpected error: HTTPSConnectionPool(host='acme-v01.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fc6b25f4240>: Failed to establish a new connection: [Errno 111] Connection refused',)). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/mtailounie.net/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
I have tried to test the connection to acme-v01.api.letsencrypt.org with openssl, but it is refused from my server.
Is it possible that Let’s Encrypt have blocked my IP address? Whay?
I don't think this is the most likely explanation. Can your webserver reach other websites (letsencrypt.org, google.com, etc) without issue? Can you share the output from running mtr -c 20 -w -r acme-v01.api.letsencrypt.org? (You may need to install mtr first).
Thanks for providing that MTR. I think you might have a problem with your DNS resolution. The IP that you are resolving for the Let’s Encrypt ACME API (208.91.197.91) is incorrect.
Can you verify that your DNS is configured properly? You may want to investigate whether you have malicious software redirecting DNS to harmful websites :-X