luvit/lit

Certificate expired

MadLeaker opened this issue · 4 comments

I checked with fiddler, lit.luvit.io certificate is expired, please renew it, thanks!

Thanks, I'll see if I can figure out what happened

[tim@luvit cron.weekly]$ sudo ./letsencrypt 
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/lit.luvit.io.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not yet due for renewal

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The following certs are not due for renewal yet:
  /etc/letsencrypt/live/lit.luvit.io/fullchain.pem expires on 2019-02-10 (skipped)
No renewals were attempted.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Ahh, found the issue, I don't reload nginx's config after getting the new cert.
Works now:

[tim@luvit cron.weekly]$ sudo systemctl reload nginx

Actually, I don't know why it didn't update, this is the script:

#!/bin/sh
systemctl stop nginx
certbot renew
systemctl start nginx

But it's updated now.