TIP: script to check if LetsEncrypt certificates will expire and automatically renew and install

Now that PythonAnywhere automated the installation part (no writing emails to the staff anymore), we are completely automating the process of

  1. Checking if a domain's certificate is about to expire
  2. If, so generate a new one
  3. Install it

If anyone is interested, please check out

We have this installed as a daily task.

thanks for that script! should be useful as reference for anyone else interested in automating their LetsEncrypt certs!