Hi my certificates have expired and when i try and renew them is giving me the below error. Upon checking the conf file i have nothing written on Line 24.
Cert is due for renewal, auto-renewing…
Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: PluginError(‘There has been an error in parsing the file /etc/apache2/sites-enabled/portal.stcatherines.eu-le-ssl.conf on line 24: Syntax error’,)
Attempting to renew cert (portal.stcatherines.eu) from /etc/letsencrypt/renewal/portal.stcatherines.eu.conf produced an unexpected error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: PluginError(‘There has been an error in parsing the file /etc/apache2/sites-enabled/portal.stcatherines.eu-le-ssl.conf on line 24: Syntax error’,). Skipping.
My web server is (include version):
Apache version 2.4.25
The operating system my web server runs on is (include version):
Debian Linux 9
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):
Webmin 1.930
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
<IfModule mod_ssl.c>
> <VirtualHost *:443>
> DocumentRoot "/var/www/html/schs/docroot"
> ServerName portal.stcatherines.eu
> <Directory "/var/www/html/schs/docroot">
> #allow from all
> #Options None
> #Require all granted
> Options Indexes FollowSymLinks
> AllowOverride All
> Require all granted
> </Directory>
> RewriteEngine on
> # Some rewrite rules in this file were disabled on your HTTPS site,
> # because they have the potential to create redirection loops.
> # RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/portal.stcatherines.eu/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/portal.stcatherines.eu/privkey.pem
> </VirtualHost>