The operating system my web server runs on is (include version): Wordpress
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):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 1.10.1
When I'm opening my website with Chrome it shows up as Not Secure. Clicking on it says that my certificate is not valid, but if I then click on view certificate it tells me that the certificate is valid.
Both domains are covered. I had to manually add the one without the www. Running that command got me this on the terminal:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The certificate being served at https://iulia-heinrich.com is missing the other domain, so you probably have ended up with two different certificates installed.
Try check the output of:
sudo certbot certificates
If it shows that you have two different certificates, you could then:
Modify your Apache configuration to only use the certificate that covers both domains, and then
Delete the unwanted certificate with certbot delete
Alright, I have two certificates. One points to both while another one points to just the www. one. I tried sudo certbot delete --cert-name example.com on the one that has just the www and now the website is down.
I think I deleted the wrong certificate
I'm getting this error now.
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
AH00526: Syntax error on line 35 of /etc/apache2/sites-enabled/iulia-heinrich.com-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/www.iulia-heinrich.com/fullchain.pem' does not exist or is empty
The apache plugin is not working; there may be problems with your existing configuration.
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 35 of /etc/apache2/sites-enabled/iulia-heinrich.com-le-ssl.conf:\nSSLCertificateFile: file '/etc/letsencrypt/live/www.iulia-heinrich.com/fullchain.pem' does not exist or is empty\n")
Why update? Running with that --cert-name should use it, right? Ouch. Is there any little-known certbot behavior that will ignore the apache configuration problem (for bootstrapping purposes)?
By the by, for future reference, using --cert-name lets you name your certificate and modifies the configuration associated with that certificate. --keep reinstalls your existing certificate if it's unmodified (to keep from acquiring a duplicate and risking hitting the rate limits).