I failed to create certificate.
I tried to check access using command below (just to check if there is an issue in the web server for this specific folder) and it works
curl -I http://egerp.com/.well-known/acme-challenge/3vGIG540TjxdzS4O_eCm0qi1VaZaDfvQQ9Ib0ZAyaO8
HTTP/1.1 200 OK
Server: nginx/1.16.1
Date: Wed, 30 Sep 2020 16:51:46 GMT
Content-Type: text/html; charset=utf-8
Connection: close
So it seems not to be an access problem.
My domain is: egerp.com
I ran this command: sudo certbot --nginx
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Which names would you like to activate HTTPS for?
1: egerp.com
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for egerp.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. egerp.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://egerp.com/.well-known/acme-challenge/VGqRPZjDPYaytu-0AZ2WNwrvGCQYv57DZ0UQe32v-f8: Timeout during connect (likely firewall problem)
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: egerp.com
Type: connection
Detail: Fetching
http://egerp.com/.well-known/acme-challenge/VGqRPZjDPYaytu-0AZ2WNwrvGCQYv57DZ0UQe32v-f8:
Timeout during connect (likely firewall problem)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. 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 version: nginx/1.14.0 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1025-aws x86_64)
My hosting provider, if applicable, is:
aws EC2
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): certbot 0.27.0