I can successfully access http://www.ve3nrt.net/.well-known/acme-challenge/test.html from outside my nat, but I get 404 errors when trying to obtain a certificate. I "watch"ed the challenges directory and did not see any new file appear there. Log file doesn’t appear to say anything more useful than does the console output.
Appreciate the help.
Chris
Here is my nginx configuration file
server {
listen 80;
server_name staging.leonis.ve3nrt.net;
error_page 401 403 404 /404.html;
location /static {
alias /home/django/staging.leonis.ve3nrt.net/static;
}
location /.well-known/acme-challenge/ {
alias /home/django/challenges/;
try_files $uri =404;
}
location / {
proxy_pass http://unix:/tmp/staging.leonis.ve3nrt.net.socket;
proxy_set_header Host $host;
}
}
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: ve3nrt.net
I ran this command:
sudo certbot --authenticator webroot --installer nginx -d ve3nrt.net,www.ve3nrt.net --webroot-path=/home/django/challenges
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for ve3nrt.net
http-01 challenge for www.ve3nrt.net
Using the webroot path /home/django/challenges for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. ve3nrt.net (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://ve3nrt.net/.well-known/acme-challenge/RtLeIW9pzU6jDq36fUTnnn6OuW0Ui7PHAOSCsjMw_08 [69.165.222.201]: 404, www.ve3nrt.net (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.ve3nrt.net/.well-known/acme-challenge/ujkrs4nYsuxbkX73Btn3T_tZjDZOjQ-szRtB-bsLf0o [69.165.222.201]: 404
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: ve3nrt.net
Type: unauthorized
Detail: Invalid response from
http://ve3nrt.net/.well-known/acme-challenge/RtLeIW9pzU6jDq36fUTnnn6OuW0Ui7PHAOSCsjMw_08
[69.165.222.201]: 404Domain: www.ve3nrt.net
Type: unauthorized
Detail: Invalid response from
http://www.ve3nrt.net/.well-known/acme-challenge/ujkrs4nYsuxbkX73Btn3T_tZjDZOjQ-szRtB-bsLf0o
[69.165.222.201]: 404To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
My web server is (include version):
nginx/1.10.3
The operating system my web server runs on is (include version):
Raspbian stretch
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):
No