AH00526:
Syntax error on line 18 of /etc/apache2/sites-enabled/chosem.work-le-ssl.conf:
SSLCertificateFile: file â/etc/letsencrypt/live/chosem.work/fullchain.pemâ does not exist or is empty
Action â-tâ failed.
I tried to enter:
sudo a2dissite chosem.work.lv.conf
(as in the second post on that page).
The command removes the configuration file containing that virtualhost, from the active Apache configuration. (More precisely, it looks for a file matching that name as /etc/apache2/sites-enabled/{}.conf, and removes it).
The problem with deleting a certificate is that you first need to ensure that your active webserver configuration doesn't rely on that certificate existing. Of course, since Certbot does not actually warn you about this, many users probably run afoul of this issue.
It's better to delete it, so that your server doesn't keep trying to renew it pointlessly.
Surprised more people donât run into this issue. I guess there are a lot of expired certificates on servers when domains lapse.
I assume if since the server is up and the other websites are operable then the following isnât an issue? need to ensure that your active webserver configuration doesnât rely on that certificate existing
Ok thanks. So if future certificates expires sound easier to just leave them on the server, but as AZ mentioned there will be a call for renewal every 90 days I guess.
When an expired certificate is found:
Q: Is the site still in use?
YES: Why did the cert NOT auto-renew? [something has failed]
NO: Just move that site config file out from the âactiveâ sites-available folder (or delete it). [and restart web service]
With common automatic renewal settings, there will be an attempt to renew it twice a day, every day, starting 30 days before it expired. That's 240 attempts to renew it by the time you reach 90 days after it expired.
Hi
Thanks for the update.
In my case the domain expired and the site was not in use any longer.
This is why I tried to delete rather than let expire.
rg305
NO: Just move that site config file out from the âactiveâ sites-available folder (or delete it). [and restart web service]
I only have basic skills in this, but is what you suggest in the above line the same as what AZ suggested? ( The "sudo a2dissite chosem.work-le-ssl" command? )
In essence, yes; But the removal may depend on how it was included.
If the site (file) was enabled using "a2ensite" then "a2dissite" would work.
If the site (file) was included as a result of the its "location", then moving it out or deleting would work.
(as an example of such a possible inclusion "IncludeOptional sites-enabled/*.conf")