Error while running apache2ctl graceful.
httpd not running, trying to start
Action 'graceful' failed.
The Apache error log may have more information.
Unable to restart apache using ['apache2ctl', 'graceful']
Error while running apache2ctl graceful.
httpd not running, trying to start
Action 'graceful' failed.
The Apache error log may have more information.
Unable to restart apache using ['apache2ctl', 'graceful']
Encountered exception during recovery: certbot.errors.MisconfigurationError: Error while running apache2ctl graceful.
httpd not running, trying to start
Action 'graceful' failed.
The Apache error log may have more information.
Error while running apache2ctl graceful.
httpd not running, trying to start
Action 'graceful' failed.
The Apache error log may have more information.
[Mon Dec 12 13:37:11.073165 2022] [ssl:emerg] [pid 32587] AH02572: Failed to configure at least one certificate and key for frederik.huijse.com:443
[Mon Dec 12 13:37:11.073236 2022] [ssl:emerg] [pid 32587] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: DH PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[Mon Dec 12 13:37:11.073245 2022] [ssl:emerg] [pid 32587] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: EC PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[Mon Dec 12 13:37:11.073255 2022] [ssl:emerg] [pid 32587] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
[Mon Dec 12 13:37:11.073260 2022] [ssl:emerg] [pid 32587] AH02311: Fatal error initialising mod_ssl, exiting. See /var/log/apache2/error.log for more information
AH00016: Configuration Failed
My web server is (include version):
apache2
The operating system my web server runs on is (include version):
ubuntu 18.04
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 1.32.1
You need to have a working HTTP site before getting a cert using the --apache plug-in. I don't see port 80 open to your domain. And, there is no response to an HTTP request.
AH00526: Syntax error on line 25 of /etc/apache2/sites-enabled/huijse.nl-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/huijse.nl/fullchain.pem' does not exist or is empty
Action '-t -D DUMP_VHOSTS' failed.
The Apache error log may have more information.
OP deleted it for some reason, as was noted in Failed to configure at least one certificate and key for - #4 by Freddy1 before the edit. @Freddy1, for some reason, you deleted a certificate and key file that you've told Apache to require. You'll need to either restore those files, or tell Apache to no longer require them.
OP deleted it for some reason, as was noted in Failed to configure at least one certificate and key for - #4 by Freddy1 before the edit. @Freddy1, for some reason, you deleted a certificate and key file that you've told Apache to require. You'll need to either restore those files, or tell Apache to no longer require them.
How do I restore them? I see an:
frederik.huijse-le-ssl.conf and an:
huijse.nl-le-ssl.conf in the sites-available folder.