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: moodle.ngberger.com
I ran this command: certbot renew
It produced this output:
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for moodle.ngberger.com
Enabled Apache rewrite module
Cleaning up challenges
Attempting to renew cert (moodle.ngberger.com) from /etc/letsencrypt/renewal/moodle.ngberger.com.conf produced an unexpected 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.. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/moodle.ngberger.com/fullchain.pem (failure)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/moodle.ngberger.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
My web server is (include version): apache 2.4.41
The operating system my web server runs on is (include version): Ubuntu 20.4.LTS 5.4.0-104
My hosting provider, if applicable, is: not applicable
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): ssl
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 0.40.0
apachectl -t -D DUMP_VHOSTS VirtualHost configuration:
*:443 moodle.ngberger.com (/etc/apache2/sites-enabled/moodle.ngberger.com-le-ssl.conf:2)
If I add a .conf file in sites-enabled as suggested last time I had this problem on my other server on Automatic renewal broken after ubuntu upgrade to 20.4. No virtual hosts on port 80?
Apache fails and the site goes down.
The file I tried said: <VirtualHost *:80>
ServerName moodle.ngberger.com
ServerAlias moodle.ngberger.com
# The ServerName directive sets the request scheme, hostname and port t>
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
RewriteEngine on
RewriteCond %{SERVER_NAME} =moodle.ngberger.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Please help me fix this. My certificate expires on March 26th and I don't want students to find the site does not work.
Norbert