My domain is: onethread16.co.uk (various)
I ran this command: sudo certbot --apache --non-interactive --agree-tos --email andre@onethread.co.za -d $DOMAIN_NAME
It produced this output:
Nov 14 15:12:01 ***: The apache plugin is not working; there may be problems with your existing configuration.
Nov 14 15:12:01 ***: The error was: MisconfigurationError("Error while running apache2ctl configtest.\nAction 'configtest' failed.\nThe Apache error log may have more information.\n\nAH00526: Syntax error on line 21 of /etc/apache2/sites-enabled/onethread16.co.uk.conf:\nSSLCertificateFile: file '/etc/letsencrypt/live/onethread16.co.uk/fullchain.pem' does not exist or is empty\n")
My web server is (include version): Apache/2.4.52 (Debian)
The operating system my web server runs on is (include version):Debian GNU/Linux 11 (bullseye)
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.12.0
I'm trying to autoimate running certbot from a script that runs as a user that is part of a 'webadmin' group. I hhave given the user permission to run certbot without password but it does not appear to create teh certificate files. I've tried various different aproaches including creating the directories for it, modifying permissions etc. but I suspect I might be barking up the wrong tree, given my script causes that 'The apache plugin is not working; there may be problems with your existing configuration.' error my script generates.
with this example above, the script had created a config file ( /etc/apache2/sites-available/onethread16.co.uk.conf ) with
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/onethread16.co.uk/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/onethread16.co.uk/privkey.pem