I am getting this error when I run ./certbot-auto renew:
Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.
Syntax error on line 208 of /etc/httpd/conf/vhosts-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/mysitename/cert.pem' does not exist or is empty
",)
Here is that section from the Apache config file in question (line 208 is the one that starts with SSLCertificateFile):
Remove the whole vhost completely, restart Apache, run certbot to make sure there are no errors, then recreate the vhost? (It is an active site so I do need it.)
I think the directory is gone? Is this vHost used?
If you have removed certificates, your vHost is dead. And it's easier that you have a working http - configuration, then certbot creates the https - version.
Thanks much. I deleted that site’s entry from vhosts-le-ssl.conf and restarted Apache. Everything worked fine. I was able to run certbot to update other certs, and then added SSL to this vhost with no trouble.