Skip to content

nmarriotti/cert_renew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automated Renewal of Self-Signed Certificates

Usage

./cert_renew.sh /path/to/privatekey /path/to/x509 trigger

The expiration date is checked regularly and based on a days remaining calculation, a new certificate is generated using DN information specified within cert_vars.sh

Trigger

The trigger is a value passed in that is used to determine when a new certificate should be generated. The default value is 14 days out from the current certificates expiration date.

Example

Showing old certificate expiration

image

Renewing certificate (I used a custom trigger of 365 days to force renewal)

image

Verifying new certificate expiration

image

Checking if certificate needs renewed again

image

About

Renew self-signed certificates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages