My certificates were up for renewal and it failed with similar error below. I reinstalled apache, certbot but it always seems to hang at validating.
I've setup let encrypt successfully in past. I can access a test file http://openochem.org/.well-known/acme-challenge/test.txt
Not sure what I'm doing wrong this time.
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: openochem.org
I ran this command: sudo certbot --apache --test-cert -v
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Which names would you like to activate HTTPS for?
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for openochem.org
Performing the following challenges:
http-01 challenge for openochem.org
Enabled Apache rewrite module
Waiting for verification...
Challenge failed for domain openochem.org
http-01 challenge for openochem.org
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: openochem.org
Type: connection
Detail: 144.80.194.122: Fetching http://openochem.org/.well-known/acme-challenge/U5VRkbINtniXvH4xPa6LcCV4w_qaAFA3cB1BeyaBQ68: Timeout after connect (your server may be slow or overloaded)
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Cleaning up challenges
Some challenges have failed.
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): Apache2 Ubuntu 20
The operating system my web server runs on is (include version): Ubuntu 20
My hosting provider, if applicable, is:
NA
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):
route 53 for dns records
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 1.27