Skip to content

ScottHelme/Lets-Encrypt-Smart-Renew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Lets-Encrypt-Smart-Renew

Check the remaining validity period of a certificate before renewing.

For further details see my blog post here. The official Let's Encrypt documentation, and my article on Getting started with Let's Encrypt!, recommend calling the renewal script every 30 days. This means there are only 2 opportunities to successfully renew before the certificate expires. Calling the renewal more frequently is wasteful and could cause issues with rate limits depending on your usage.

Let's Encrypt Smart Renew will check the remaining validity period of the certificate before calling your existing renewal script. Once the remaining validity falls below a set threshold, it will action the renewal. This means the script can be called much more frequently.

Replace your existing crontab entry with smartRenew.sh and update it to call your renewal script.

0 * * * * /path/to/smartRenew.sh

About

Check the remaining validity period of a certificate before renewing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages