Today my server went off due to SSL issue (
I use a crontab task (once a day) to automatically renew it so I was quite surprised.
I logged into sever and typed
certbot certificates to check if my certificates were expired.
Surprisingly, there were not expired :
Expiry Date: 2019-02-11 11:17:05+00:00 (VALID: 59 days).
After manual nginx reload it worked back again.
So at that point you might think, “oh, he forgot to have his nginx reload after the crontab renewal”… Well, it is not the case :
30 2 * * * /usr/bin/certbot renew --allow-subset-of-names --noninteractive --renew-hook "/bin/systemctl reload nginx" >> /var/log/le-renew.log
(I took this crontab task from a digitalocean tutorial by the way)
Well, maybe the
renew worked but the
reload nginx didn’t… however if the renew worked, why is my certificate expiring in 59 days and not in 90 days ?
I have no idea how I can have this situation of suddenly having this SSL error (nobody has access to the server except me and I didn’t access to it for a while).
Do you have any idea on how to figure out what caused this problem so that I can make sure it won’t happen again ?