I’m trying to renew my certificates, and I’m running into this problem. My configuration is a bit of a mess, as there were multiple certificates issued for the same domains, but hopefully this can be troubleshooted. There are multiple domains on the server and only some of them don’t work, and I’ve singled out just one for brevity.
Putting a test file in .well-known/acme-challenge/ works, as you can see here.
http://www.bychowo.pl/.well-known/acme-challenge/test
My domain is: bychowo.pl
I ran this command: sudo /usr/bin/certbot --dry-run --apache certonly -d bychowo.pl
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-staging-v02.api.letsencrypt.org
Cert not due for renewal, but simulating renewal for dry run
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for bychowo.pl
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. bychowo.pl (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://bychowo.pl/.well-known/acme-challenge/MvN-vnKVY67bW06AO7v9vrePZzWuwaM-iOlt0C1CfqM [69.87.221.76]: “\n\n<html lang=”
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: bychowo.pl
Type: unauthorized
Detail: Invalid response from
http://bychowo.pl/.well-known/acme-challenge/MvN-vnKVY67bW06AO7v9vrePZzWuwaM-iOlt0C1CfqM
[69.87.221.76]: “\n\n<html lang=”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 (include version): Apache/2.4.18 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 16.04.2 LTS
My hosting provider, if applicable, is:
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): 0.28.0