Cannot renew site cert on same server

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:
demoinvest.ambroker.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
An unexpected error occurred:
ValueError: Requesting acme-v02.api.letsencrypt.org/directory: Connection refused
Please see the logfiles in /var/log/letsencrypt for more details.My web server is (include version):

The operating system my web server runs on is (include version):
Debian 4.9.130-2 (2018-10-27) x86_64 GNU/LinuxMy hosting provider, if applicable, is:
-na
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 1.10.1

I renewed the cert successfully for the site 'invest.ambroker.com' last week. Just now I was about to renew the site cert for 'demoinvest.ambroker.com' but it failed. This two sites are configured on the same server.

2 Likes

Welcome to the Let's Encrypt Community, Sumantri :slightly_smiling_face:

From my research this type of issue appears to sometimes occur in proxy situations. Did this happen more than once?

2 Likes

What happens if you try (from that system):
curl http://acme-v02.api.letsencrypt.org/directory

2 Likes

I have to config that port. Connection refused -
curl http://acme-v02.api.letsencrypt.org/directory
curl: (7) Failed to connect to acme-v02.api.letsencrypt.org port 80: Connection refused

1 Like

Do you mean that your setup prevents outbound connections by default, and they have to be explicitly permitted?

I think @rg305 meant https://acme-v02.api.letsencrypt.org/directory rather than http.

3 Likes

[so much for copy/paste links without checking]

2 Likes

Yes..that is most probable. I had to do the same thing before. Requested for an apt-update before this, had to ask permission to release port.

2 Likes