Renew certificates + Failed authorization procedure http-01 + The server could not connect to the client to verify the domain

Hi,
My auto-renewal script fails to update the certificates. However when I try to run command ‘sudo certbot renew --dry-run’ it gives me below error message. I have read lot of help pages but could not determine the root cause of this issue. please bear me as I am no expert in Ubuntu or Apache.
Appreciate any insight in resolving this issue. Thanks in advance for looking.

My domain is: rsb.myvnc.com

I ran this command:sudo certbot renew --dry-run

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/rsb.myvnc.com.conf


Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for rsb.myvnc.com
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (rsb.myvnc.com) from /etc/letsencrypt/renewal/rsb.myvnc.com.conf produced an unexpected error: Failed authorization procedure. rsb.myvnc.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://rsb.myvnc.com/.well-known/acme-challenge/UEUHJSlmDQ3Sqx3molUU8KabO_IzaWnsojQLRLz7ePw: Timeout during connect (likely firewall problem). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/rsb.myvnc.com/fullchain.pem (failure)


** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/rsb.myvnc.com/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)


Running post-hook command: systemctl restart mosquitto
1 renew failure(s), 0 parse failure(s)

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: rsb.myvnc.com
    Type: connection
    Detail: Fetching
    http://rsb.myvnc.com/.well-known/acme-challenge/UEUHJSlmDQ3Sqx3molUU8KabO_IzaWnsojQLRLz7ePw:
    Timeout during connect (likely firewall problem)

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you’re using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.

My web server is (include version): Apache/2.4.18 (Ubuntu) Server at rsb.myvnc.com Port 443

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

My hosting provider, if applicable, is:

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

Port 80 appears to be closed.
Perhaps your ISP is now blocking inbound port 80?

Hi,

I have a redirect setup at my apache server config to route all traffic from port 80 to 443, could that be causing an issue? I am able to open the site from outside my lan network.

Thanks for looking.

No.
Port 80 can't be reached from the Internet.

1 Like

Thanks for your direction, I opened the port 80 and tried again and it worked!

Thanks a lot for your propmt help, I was going mad with this!

1 Like

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