Today I got the certificate installed using
sudo certbot --nginx --rsa-key-size 4096
Then i wanted to make sure the certificate would renew properly since I'm using HSTS. So I ran the certbot renew --dry-run as stated below. That fails for some reason. I read a few other forum posts but my configs are extremely vanilla.
In the letsencrypt.log file I saw where it wrote
location = /.well-known/acme-challenge/*randomstring*{default_type text/plain;return 200 *randomstring*.*anotherrandomstring*;} # managed by Certbot
Also, forgive me but I don't entirely know if everything this log file is safe to share.
I just don't understand how it was able to issue a valid cert on the website but the dry-run for renewing just keeps choking like it can't access the url it is adding to the nginx config.
My domain is: inventory.owensboro.kyschools.us
I ran this command: certbot renew --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/inventory.owensboro.kyschools.us.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Certificate not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator nginx, Installer nginx
Simulating renewal of an existing certificate for inventory.owensboro.kyschools.us
Performing the following challenges:
http-01 challenge for inventory.owensboro.kyschools.us
Waiting for verification...
Challenge failed for domain inventory.owensboro.kyschools.us
http-01 challenge for inventory.owensboro.kyschools.us
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: inventory.owensboro.kyschools.us
Type: connection
Detail: During secondary validation: 170.185.177.50: Fetching http://inventory.owensboro.kyschools.us/.well-known/acme-challenge/*randomstring*: Timeout during connect (likely firewall problem)
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.
Cleaning up challenges
Failed to renew certificate inventory.owensboro.kyschools.us with error: Some challenges have failed.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/inventory.owensboro.kyschools.us/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 version: nginx/1.18.0 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 20.04.4 LTS
My hosting provider, if applicable, is: Internal
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
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 1.29.0