Hi,
I have two virtual hosts running on the same machine on apache server behind NAP. Both have a letsencrypt certificate already and I'd like to renew as needed by running certboot renew.
As per the below output, www.thecampanileproject.org gets renewed without any issue, while www.toosla.me complains there is no a virtual host on 8080.
output of apachectl -t -D DUMP_VHOSTS is:
VirtualHost configuration:
*:443 is a NameVirtualHost
default server thecampanileproject.org (/.../sites-enabled/campanile-le-ssl.conf:2)
port 443 namevhost thecampanileproject.org (/.../sites-enabled/campanile-le-ssl.conf:2)
alias www.thecampanileproject.org
port 443 namevhost toosla.me (/.../sites-enabled/toosla-le-ssl.conf:2)
alias www.toosla.me
*:8080 is a NameVirtualHost
default server thecampanileproject.org (/.../sites-enabled/campanile.conf:4)
port 8080 namevhost thecampanileproject.org (/.../sites-enabled/campanile.conf:4)
alias www.thecampanileproject.org
port 8080 namevhost toosla.me (/.../sites-enabled/toosla.conf:4)
alias www.toosla.me
Both look identical too me, what can it be the problem? Note that if I move toosla virtual host to port 80 I am able to renew.
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:
www.thecampanileproject.org
www.toosla.me
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/www.thecampanileproject.org.conf
Simulating renewal of an existing certificate for www.thecampanileproject.org
Processing /etc/letsencrypt/renewal/www.toosla.me.conf
Simulating renewal of an existing certificate for www.toosla.me
Failed to renew certificate www.toosla.me with error: 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.
The following simulated renewals succeeded:
/etc/letsencrypt/live/www.thecampanileproject.org/fullchain.pem (success)The following simulated renewals failed:
/etc/letsencrypt/live/www.toosla.me/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
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 3.2.0