My domain is: condivi.so
I ran this command: sudo certbot certonly --webroot -d condivi.so -w /usr/local/ispconfig/interface/acme --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for condivi.so
Using the webroot path /usr/local/ispconfig/interface/acme for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. condivi.so (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://condivi.so/.well-known/acme-challenge/tsaSCsqkguJDahpLXnXuKRqnKIK49aCmjyAGBat2kC4 [2001:4b98:dc0:45:216:3eff:fe4b:f154]: “\r\n404 Not Found\r\n<body bgcolor=“white”>\r\n
404 Not Found
\r\n”
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: condivi.so
Type: unauthorized
Detail: Invalid response from
http://condivi.so/.well-known/acme-challenge/tsaSCsqkguJDahpLXnXuKRqnKIK49aCmjyAGBat2kC4
[2001:4b98:dc0:45:216:3eff:fe4b:f154]: “\r\n404
Not Found\r\n<body
bgcolor=“white”>\r\n404 Not
\r\n
Found
”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):
nginx version: nginx/1.10.3
The operating system my web server runs on is (include version):
Debian GNU/Linux 9 \n \l
My hosting provider, if applicable, is:
n/a
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):
n/a as I run the command via shell
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
certbot 0.28.0
So I try to create a certificate, the nginx configuration of the vhost of our concern is:
location ^~ /.well-known/acme-challenge/ {
root /usr/local/ispconfig/interface/acme/;
}
infact: http://condivi.so/.well-known/acme-challenge/hello.txt -> shows “pippo” which is correct:
cat /usr/local/ispconfig/interface/acme/.well-known/acme-challenge/hello.txt
pippo
I’m not sure what’s happening here, I run the command as root so it should be able to write there, there are no symlinks in place and the fact that I can reach http://condivi.so/.well-known/acme-challenge/hello.txt suggests that I’m using the right paths.
Ideas?