Join us on Discord! We now have an official Discord server for OpenFLIXR: , these forums will continue to operate as normal.

Script for alerting to expiring LetsEncrypt certs

If you're like me and need to manually intervene in some way to renew your Let's Encrypt SSL certs, then the below can send you email alerts as a reminder that the cert are expiring soon.

First, install `ssh-cert-check` from
As root:
cd /opt
git clone
cd ssl-cert-check
git pull master

Then grab my script from ``
Edit it and check install path, cert path(s), expiry days, email sender & receiver & mail server.
Then schedule it daily or weekly with cron.

For bonus points, add the new git repo to the OpenFLIXR "user" weekly update script so that it stays up to date of there are bugfixes (the user weekly update script is at /opt/openflixr/
cd /opt/ssl-cert-check
git reset --hard
git pull


  • I’ll have a look. There’s a lot of let’s Encrypt stuff on my list to be fixed. 
  • Updated for some error handling and stuff that wasn't going the way I thought it would.
    And better linked into a daily cron job than in the weekly update user script if days is <21.
Sign In or Register to comment.