Certbot failed to authenticate on apache

My domain is: ronyn.cx

I ran this command: sudo certbot --apache

It produced this output:
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: ronyn.cx
Type: connection
Detail: 38.186.34.191: Fetching http://ronyn.cx/.well-known/acme-challenge/RcBJA-PPtnAayJNkzh8OalNR2S6pR2_Xe_Gs5rJWsGM: Timeout during connect (likely firewall problem)

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

My web server is (include version): 2.4.59 (debian)

The operating system my web server runs on is (include version): debian 11

My hosting provider, if applicable, is: self hosted

I can login to a root shell on my machine (yes or no, or I don't know): yes over lan

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

Hello @ronyn, welcome to the Let's Encrypt community. :slightly_smiling_face:

Using the online tool Let's Debug yields these results https://letsdebug.net/ronyn.cx/2064163

ANotWorking
ERROR
ronyn.cx has an A (IPv4) record (38.186.34.191) but a request to this address over port 80 did not succeed. Your web server must have at least one working IPv4 or IPv6 address.
A timeout was experienced while communicating with ronyn.cx/38.186.34.191: Get "http://ronyn.cx/.well-known/acme-challenge/letsdebug-test": context deadline exceeded

Trace:
@0ms: Making a request to http://ronyn.cx/.well-known/acme-challenge/letsdebug-test (using initial IP 38.186.34.191)
@0ms: Dialing 38.186.34.191
@10000ms: Experienced error: context deadline exceeded
IssueFromLetsEncrypt
ERROR
A test authorization for ronyn.cx to the Let's Encrypt staging service has revealed issues that may prevent any certificate for this domain being issued.
38.186.34.191: Fetching http://ronyn.cx/.well-known/acme-challenge/_NZWxmhTJ_PwtbLX92bYGf1cmNacoWUitOVgqEwc6xY: Timeout during connect (likely firewall problem)

The HTTP-01 challenge states "The HTTP-01 challenge can only be done on port 80."
Best Practice - Keep Port 80 Open

And here Open Port Check Tool - Test Port Forwarding on Your Router show no open ports

And this Permanent link to this check report is showing from around the world Port 80 is giving "Connection timed out".

2 Likes

Thank you for the info, this is my first time using certbot and I was worried my nextcloud was messing with it for some reason. I re-did the port forwarding and now it's running like expected.

4 Likes

Excellent @ronyn, glad to hear it is running as desired! :slight_smile:
Have a pleasant day (or night).

3 Likes

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