Skip to content

Script to allow automatic renewal of all letsencrypt certificates.

License

Notifications You must be signed in to change notification settings

defsdoor/letsencrypt-autorenew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

letsencrypt-autorenew

Script to allow automatic renewal of all letsencrypt certificates.

Simply create a control file (/etc/letsencrypt/mycerts) containing the certificate details you require. Multiple certificate can be defined in the same file - each new occurance of either the HOSTS or EMAIL keywords determine a new certificate.

See the example mycerts file for details.

When run, it checks for the presence of each existing certificate and then compares its details with the settings in the control file.

Note that the certificate is created in the name of the first host listed (letsencrypt defaults to this.)

If the certificate does not exist, or has a different list of Alternate Subject Names, or expires in less than 8 days, a new certificate will be requested.

Add this to cron to run daily and email the output to yourself.

About

Script to allow automatic renewal of all letsencrypt certificates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages