Why does the certbot fail, it is not cause of the firewall etc

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. crt.sh | 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: lja.fi

I ran this command:certbot certonly --dry-run --webroot --webroot-path ~www-data/html/ -d lja.fi

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Simulating a certificate request for lja.fi

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: lja.fi
Type: connection
Detail: 80.186.162.127: Fetching http://lja.fi/.well-known/acme-challenge/8FCfyB-c7ZUc5YTQKJ2nAax0i2QCQhyato-vsOBd94U: Timeout during connect (likely firewall problem)

Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

My web server is (include version): Apache
Server version: Apache/2.4.58 (Ubuntu)
Server built: 2025-04-03T14:36:49
Server's Module Magic Number: 20120211:129
Server loaded: APR 1.7.2, APR-UTIL 1.6.3, PCRE 10.42 2022-12-11
Compiled using: APR 1.7.2, APR-UTIL 1.6.3, PCRE 10.42 2022-12-11
Architecture: 64-bit

The operating system my web server runs on is (include version):
Server version: Apache/2.4.58 (Ubuntu)
Server built: 2025-04-03T14:36:49
Server's Module Magic Number: 20120211:129
Server loaded: APR 1.7.2, APR-UTIL 1.6.3, PCRE 10.42 2022-12-11
Compiled using: APR 1.7.2, APR-UTIL 1.6.3, PCRE 10.42 2022-12-11
Architecture: 64-bit

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

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

I can telnet to the port 80 when certbot is waiting .. so the issue is not connection.
.. somethign to do with the configuration..

Please try from a location outside of your own network and/or from a different country.

From my location I'm getting a timeout too as does Let's Debug: Let's Debug.

4 Likes

OK, I'll check that .. thanks for the debug too link :slight_smile:

2 Likes

Now I got it working, modem needed reset!

Hm, some modems indeed sometimes can suddenly "forget" they had to do some NAT portmapping :rofl:

2 Likes