My domain is:
bitoffirehost.com
I ran this command:
sudo certbot certonly --webroot -w /path/to/sites/root/ -d bitoffirehost.com -d www.bitoffirehost.com
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for bitoffirehost.com
http-01 challenge for www.bitoffirehost.com
Using the webroot path /path/to/sites/root/ for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.bitoffirehost.com (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://www.bitoffirehost.com/.well-known/acme-challenge/gpNH3G05oQndon3uIwRCRlO9wqzWto9oUJTejXf4-SA: Timeout, bitoffirehost.com (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://bitoffirehost.com/.well-known/acme-challenge/6hgBONgIFbICDkdrm_OE-38MbjpMcjNZm4Fv4RCNemo: Timeout
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: www.bitoffirehost.com
Type: connection
Detail: Fetching
http://www.bitoffirehost.com/.well-known/acme-challenge/gpNH3G05oQndon3uIwRCRlO9wqzWto9oUJTejXf4-SA:
TimeoutDomain: bitoffirehost.com
Type: connection
Detail: Fetching
http://bitoffirehost.com/.well-known/acme-challenge/6hgBONgIFbICDkdrm_OE-38MbjpMcjNZm4Fv4RCNemo:
TimeoutTo 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. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you’re using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
My web server is (include version):
nginx/1.13.8
The operating system my web server runs on is (include version):
Ubuntu 16.04
My hosting provider, if applicable, is:
Amazon Web Services
I can login to a root shell on my machine (yes or no, or I don’t know):
No, I can sudo from main user
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
No
My server block for nginx is:
server {
listen 172.31.27.53:80;
listen [2a05:d01c:eb7:1900:c7bc:6710:787c:fad9]:80;
server_name bitoffirehost.com;
server_name www.bitoffirehost.com;
root /path/to/sites/root/;
access_log /path/to/sites/logs/access.log;
error_log /path/to/sites/logs/errors.log;
index index.php index.html;
gzip off;
location / { try_files $uri $uri/ /index.php?$args; }
location ~ /\.ht { deny all; }
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi.conf;
}
}
My domains A and AAAA records are pointing to the Elastic IP provided by Amazon, and it looks like Lets Encrypt can resolve the site, however it is failing to verify the challenge. Is there something ridiculously stupid I am overlooking, or is it an AWS issue?