Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 539 Bytes
# The remaining life on our certificate below which we should renew (7 days).
# Set date for backup
TODAY=`date '+%Y_%m_%d'`
# If the certificate has less life remaining than we want.
if ! openssl x509 -checkend $[ 86400 * $RENEW ] -noout -in /path/to/signed.crt
# Then make backup copy of existing cert before starting renew
cp /path/to/signed.crt /path/to/old/signed_backup_$TODAY.crt
# Then call the renewal script.
You can’t perform that action at this time.