I ran this command:I got an email stating I had to upgrade to keep letsencrypt working. So this is what I did:
was running certbot 0.22 to upgraded to .28
ran the command: 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"
Then when doing the dry tun for renew I suddenly get these errors:
Attempting to renew cert (www.brick9.com) from /etc/letsencrypt/renewal/www.brick9.com.conf produced an unexpected error: Failed authorization procedure. www.brick9.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.brick9.com/.well-known/acme-challenge/Y6o03UuCUCSmiUQtPNd9XjMat3X1F4Q6435GUexklF0: "\n<html class="avada-html-layout-wide" lang="en-US" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#\">\n<head". Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/brick9.com/fullchain.pem (failure)
/etc/letsencrypt/live/www.brick9.com/fullchain.pem (failure)
I'm afraid @JuergenAuer's command may have created a new separately-managed certificate if you didn't have www.brick9.com and brick9.com on the same certificate before. You can check with certbot certificates.
It looks like you have two cert good for at least 67 days.
But one has two names and one has one name.
Both have the same single name; So, I wonder if you are even using the single name cert...
[you can do without it]