It produced this output: Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.
My web server is (include version): Server version: Apache/2.4.29 (Ubuntu)
Server built: 2020-08-12T21:33:25
The operating system my web server runs on is (include version): 18.04.1-Ubuntu
My hosting provider, if applicable, is: Azure
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.13.0
I also get this error when giving this command:
sudo certbot certonly -a webroot -w /var/www/html -d ammabotti1.omnia.fi --dry-run
And error here:
Timeout during connect
[paulii@vetbot-v4 /~ TUOTANTO]$ apache2ctl -S
VirtualHost configuration:
*:444 is a NameVirtualHost
default server ammabotti1.omnia.fi (/etc/apache2/sites-enabled/amva.conf:1)
port 444 namevhost ammabotti1.omnia.fi (/etc/apache2/sites-enabled/amva.conf:1)
alias www.ammabotti1.omnia.fi
port 444 namevhost aspabotti1.omnia.fi (/etc/apache2/sites-enabled/aspa.conf:1)
alias www.aspabotti1.omnia.fi
port 444 namevhost ittukibot.omnia.fi (/etc/apache2/sites-enabled/ittuki.conf:2)
alias www.ittukibot.omnia.fi
port 444 namevhost vetbot2.omnia.fi (/etc/apache2/sites-enabled/laakebot.conf:2)
alias www.vetbot2.omnia.fi
port 444 namevhost sakkybotti1.omnia.fi (/etc/apache2/sites-enabled/sakky.conf:1)
alias www.sakkybotti1.omnia.fi
port 444 namevhost syobotti1.omnia.fi (/etc/apache2/sites-enabled/syobot.conf:1)
alias www.syobotti1.omnia.fi
port 444 namevhost talhalbotti1.omnia.fi (/etc/apache2/sites-enabled/talhal.conf:1)
alias www.talhalbotti1.omnia.fi
*:443 vetbot1.omnia.fi (/etc/apache2/sites-enabled/webot.conf:2)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex watchdog-callback: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33 not_used
Group: name="www-data" id=33 not_used
[paulii@vetbot-v4 /apache2 TUOTANTO] pwd
/etc/apache2
[paulii@vetbot-v4 /apache2 TUOTANTO] cat ports.conf
'# If you just change the port or add more ports here, you will likely also
'# have to change the VirtualHost statement in
'# /etc/apache2/sites-enabled/000-default.conf
Listen 80 #Listen *:80 *::80
#<VirtualHost *:80 *::80> # if you want IPv4 and IPv6
#<VirtualHost *::80> # just IPv6
Only port 443 and 444 (why 444?!?). Let's Encrypt starts its http-01 validation on port 80, one of the mandatory port numbers. You don't have a HTTP virtualhost on port 80, so certbots apache plugin doesn't function. Also, the webroot plugin doesn't work too, as there is nothing listening on port 80.
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for vetbot4.westeurope.cloudapp.azure.com