Hi
I just wanted to let you know that I’ve been troubleshooting an issue this morning with a host that previously renewed OK. The error message was as follows:
Attempting to renew cert from /etc/letsencrypt/renewal/{mydomain}.com.conf produced an unexpected error:
Failed authorization procedure. {mydomain}.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://{mdomain}.com/.well-known/acme-challenge/OkKx4TkuhVp3gl9x6mMazWm31Ojg7N_CaVHPDeuhobw: "
300 Multiple ChoicesMultiple C". Skipping.
Not much on the web about 300 Multiple Choices errors, especially in relation to Certbot / LE. Even running manually gave the same error.
I was just about to post a help request when I saw the issues with Plesk and it made me think - and I checked - and our DNS provider has a default AAAA record. So although our A record was spot on and I could correctly browse to http://{mydomain}.com/.well-known/acme-challenge/test.txt so I know it was right - I hadn’t considered that the Acme servers may be attempting to contact a different server that I was.
Removing the erroneous AAAA record has allowed the renewal to process correctly and immediately.
Hope this helps someone else in the future.
It might be useful to have a command line switch to allow to specify that the server should check using IPv4 only, rather than assuming that if an IPv6 address exists that it’s correct.
Thanks