Certbot network unreachable

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: nginx.example.com

I ran this command: certbot --nginx

It produced this output: An unexpected error occurred:
ValueError: Requesting acme-v02.api.letsencrypt.org/directory: Network is unreachable

My web server is (include version): nginx/1.20.1

The operating system my web server runs on is (include version): Red Hat Enterprise Linux 9.5

My hosting provider, if applicable, is: N/A

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 2.11.0

Please show the outputs of:

curl -v https://acme-v02.api.letsencrypt.org/directory

and

traceroute acme-v02.api.letsencrypt.org

Another user in Unable to connect to Let's encrypt from WHM (ubuntu) via Azure also reported a problem, but without any useful information. Maybe your issue is the same, maybe it's completely different :man_shrugging:

1 Like

Hello Osiris,
Please see the screenshot. I assume that it's because of network issue because our network allow only specific url and IP. Can I have required url or IP address that I need to create and renew certificate in certbot?