Unable to run sudo certbot --apache on Ubuntu 18.04

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: www.vesso.in

I ran this command: sudo certbot --apache

It produced this output: OSError: [Errno 101] Network is unreachable
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7ff2ad6085f8>: Failed to establish a new connection: [Errno 101] Network is unreachable

My web server is (include version): Apache

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

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

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

Hi @BoffinPanda

looks like your Certbot can't talk with Letsencrypt.

What says

ping letsencrypt.org
ping acme-v02.api.letsencrypt.org

Perhaps use a fixed ip in your hosts file:

104.74.120.43 acme-v02.api.letsencrypt.org

That's not a permanent solution. But temporary, it may work.

Thanks Juergen.

Yes, I was unable to ping certbot. Not only certbot but anything since I did not allow outbound traffic in my AWS EC2 instance.

Once I changed my firewall settings, I was able to get it working.

Thanks again for the great help.

1 Like

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