Hi, I got the email “Action required: Let’s Encrypt certificate renewals” and attempted to follow this guide: How to stop using TLS-SNI-01 with Certbot.
“If the version is less than 0.28, you need to upgrade your Certbot. Visit…”
Here I ran the commands
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository universe
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install certbot python-certbot-apache
I stopped at the Get started section since I had a certificate.
$ certbot --version
certbot 0.28.0
Then I ran the recommended
$ sudo sh -c "sed -i.bak -e 's/^\(pref_challs.*\)tls-sni-01\(.*\)/\1http-01\2/g' /etc/letsencrypt/renewal/*; rm -f /etc/letsencrypt/renewal/*.bak"
And got
$ sudo certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/naturalhazardsgroup.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-staging-v02.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for naturalhazardsgroup.com
http-01 challenge for www.naturalhazardsgroup.com
Waiting for verification...
Cleaning up challenges
Attempting to renew cert (naturalhazardsgroup.com) from /etc/letsencrypt/renewal/naturalhazardsgroup.com.conf produced an unexpected error: Failed authorization procedure. naturalhazardsgroup.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://naturalhazardsgroup.com/.well-known/acme-challenge/3u-7Rn_H9vH1LxBBb0X5f_7BzmXykWwFGmzEJ2wv05g: "\n\n\n<!DOCTYPE html>\n\n<html class=\"no-js\" lang=\"en-US\">\n\n<head>\n \n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=dev". Skipping.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/new.naturalhazardsgroup.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-staging-v02.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for new.naturalhazardsgroup.com
Waiting for verification...
Cleaning up challenges
Attempting to renew cert (new.naturalhazardsgroup.com) from /etc/letsencrypt/renewal/new.naturalhazardsgroup.com.conf produced an unexpected error: Failed authorization procedure. new.naturalhazardsgroup.com (http-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for new.naturalhazardsgroup.com. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/naturalhazardsgroup.com/fullchain.pem (failure)
/etc/letsencrypt/live/new.naturalhazardsgroup.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates below have not been saved.)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/naturalhazardsgroup.com/fullchain.pem (failure)
/etc/letsencrypt/live/new.naturalhazardsgroup.com/fullchain.pem (failure)
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates above have not been saved.)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: naturalhazardsgroup.com
Type: unauthorized
Detail: Invalid response from
http://naturalhazardsgroup.com/.well-known/acme-challenge/3u-7Rn_H9vH1LxBBb0X5f_7BzmXykWwFGmzEJ2wv05g:
"\n\n\n<!DOCTYPE html>\n\n<html class=\"no-js\"
lang=\"en-US\">\n\n<head>\n \n<meta charset=\"UTF-8\">\n<meta
name=\"viewport\" content=\"width=dev"
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.
- The following errors were reported by the server:
Domain: new.naturalhazardsgroup.com
Type: None
Detail: DNS problem: NXDOMAIN looking up A for
new.naturalhazardsgroup.com
- Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
There used to be a site at new.naturalhazardsgroup.com and a DNS record, this was removed at some point. I tried to clean it up maybe foolishly
$ sudo rm -r etc/letsencrypt/archive/new.naturalhazardsgroup.com
$ sudo rm -r /etc/letsencrypt/live/new.naturalhazardsgroup.com/
$ sudo rm -r /etc/letsencrypt/renewal/new.naturalhazardsgroup.com.conf
I have the remaining error:
$ sudo certbot renew --dry-run
_[removed - says I am not allowed to post more than 20 links on forum]_
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: naturalhazardsgroup.com
Type: unauthorized
Detail: Invalid response from
http://naturalhazardsgroup.com/.well-known/acme-challenge/OnwYyDAMFKUg3v15FvFVwPxkAMJHxMIjmj70eIG_X1k:
"\n\n\n<!DOCTYPE html>\n\n<html class=\"no-js\"
lang=\"en-US\">\n\n<head>\n \n<meta charset=\"UTF-8\">\n<meta
name=\"viewport\" content=\"width=dev"
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: Apache/2.4.18
The operating system my web server runs on is: Ubuntu 16.04
My hosting provider is: DigitalOcean
I can login to a root shell on my machine: yes
I’m using a control panel to manage my site: no
The version of my client is: certbot 0.28.0


