Hello,
Can anyone help me with the following error when connecting from my AWS instance to Let's Encrypt to obtain an SSL certificate for my test domain? I can assure you that the firewall is not blocking me, but somehow I am unable to reach Let's Encrypt. When I test google.com, I receive a positive response and can connect to my internal network, but I cannot connect to all sites. I have opened port 443 to IP address 0.0.0.0/0
I ran this command: ```
sudo certbot certonly --manual --dry-run --staging --preferred-challenges=dns -d (My domain name)
It produced this output: aving debug log to /var/log/letsencrypt/letsencrypt.log
An unexpected error occurred:
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='acme-staging-v02.api.letsencrypt.org', port=443): Read timed out. (read timeout=45)
My web server is (include version): Nginx/1.26.3
The operating system my web server runs on is (include version): AWS
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 2.6.0
The response to the curl for cloudflare is unusual. The 5002ms timeout to acme is because -m5 limited the wait time. That is similar to what you saw with your read timeout in first post.
Something looks wrong with your network config. When setting up your AWS VPC did you follow: AWS Route Table Configuration (link here)
Same error you got connecting to cloudflare test endpoint earlier.
I don't know what more I can help with. This is not a problem unique to Let's Encrypt. Why you can reach google I have no idea. But, not being able to reach an AWS endpoint from an AWS based server is a problem.
You are best off consulting with server and / or networking specialists or forums for help.
Spin up a new VM on the same AWS account and try curl against the Let's Encrypt API again. If that works then it's either your VM security group settings or your VM firewall (or other security tools) outgoing traffic block.