I see there have been a few similar posts and I think my issue may match /.well-known directory gets created, but error “Could not connect...”, but I’m not sure how to test if the issue is that port 80 is not allowing connections.
Visiting the mydomain.org shows the nginx welcome page.
This file exists:
/etc/letsencrypt/webrootauth/.well-known/acme-challenge/ping.txt (644 permissions)
I had created the
acme-challenge directory manually.
But I cannot connect to
The nginx config file: https://gist.github.com/MikeiLL/f7fdceb1a2c986bbccc1e016e93d2727
This is the command:
/opt/letsencrypt/letsencrypt-auto certonly -a / webroot --webroot-path=/etc/letsencrypt/webrootauth / --renew-by-default --email email@example.com / --text --agree-tos -d mydomain.org