Certbot not finding my domain (but Letsdebug webtool does)

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: main.asmg-ltd.net

I ran this command: sudo certbot -v --apache --test-cert

It produced this output: Unable to find a virtual host listening on port 80

My web server is (include version): Apache/2.4.64

The operating system my web server runs on is (include version): Fedora 42

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 5.1.0

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

Please show the output of this command sudo apachectl -t -D DUMP_VHOSTS.

2 Likes

Certbot not finding my domain (but Letsdebug webtool does)

You're confusing what Certbot and Letsdebug are doing when "looking for" your domain. Letsdebug just tries to connect to it, like any other webbrowser/client and does some other remote tests like DNS stuff, whereas Certbot with the commands you're using is looking locally on your server, specifically the Apache configuration. So kinda odd comparison you're making here :slightly_smiling_face:

4 Likes