Timeout during connect on cloned AMI instance

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: dekk.io

I ran this command: sudo certbot certonly --standalone -d cloud5.dekk.io

It produced this output: Failed authorization procedure. cloud5.dekk.io (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://cloud5.dekk.io/.well-known/acme-challenge/wmg8q81X5CIGr4xBIEENVS8I3srjYy_9SqA-LDx9emE: Timeout during connect (likely firewall problem)

My web server is (include version): nginx, but that’s does not relevant. While running this, I stop nginx. The exact same procedure works on my other EC2 instances. The only difference is that I clone the AMI on one of those instances and try it.

The operating system my web server runs on is (include version): Ubuntu 16.04.3 LTS

My hosting provider, if applicable, is: AWS

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):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): certbot 0.28.0

More info. My normal procedure is

Installing certbot

sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-nginx

Get the certificate

sudo openssl dhparam 2048 -out /etc/ssl/certs/dhparam.pem

sudo service nginx stop
sudo lsof -i:443
sudo lsof -i:80

#now get the certificate
sudo certbot certonly --standalone -d cloud5.dekk.io

You may have multiple firewalls to deal with. (AWS and UFW).
All firewalls must allow port 80 and 443.

I also can’t reach your site via port 80:
wget cloud5.dekk.io
–2019-01-24 21:58:26-- http://cloud5.dekk.io/
Resolving cloud5.dekk.io (cloud5.dekk.io)…
Connecting to cloud5.dekk.io (cloud5.dekk.io)||:80… failed: Connection timed out.

Indeed, it was the AWS firewall. Thanks for the help.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.