check-certificates: shorten key for detailed infos

This commit is contained in:
Christian Hesse 2019-01-09 17:38:55 +01:00
parent e51daf2761
commit df7cb1b88b

View file

@ -63,11 +63,11 @@
$SendNotification ("Certificate renewed") \ $SendNotification ("Certificate renewed") \
("A certificate on " . $Identity . " has been renewed.\n\n" . \ ("A certificate on " . $Identity . " has been renewed.\n\n" . \
"Certificate Name: " . $CertName . "\n" . \ "Name: " . $CertName . "\n" . \
"Common Name: " . $CommonName . "\n" . \ "Common Name: " . $CommonName . "\n" . \
"Fingerprint: " . $FingerPrint . "\n" . \ "Fingerprint: " . $FingerPrint . "\n" . \
"Issuer: " . $Issuer . "\n" . \ "Issuer: " . $Issuer . "\n" . \
"Validity: " . $InvalidBefore . " to " . $InvalidAfter); "Validity: " . $InvalidBefore . " to " . $InvalidAfter);
:log info ("The certificate " . $CertName . " has been renewed."); :log info ("The certificate " . $CertName . " has been renewed.");
} on-error={ } on-error={
:local InvalidBefore [ / certificate get $Cert invalid-before ]; :local InvalidBefore [ / certificate get $Cert invalid-before ];
@ -76,11 +76,11 @@
$SendNotification ("Certificate warning!") \ $SendNotification ("Certificate warning!") \
("A certificate on " . $Identity . " is about to expire.\n\n" . \ ("A certificate on " . $Identity . " is about to expire.\n\n" . \
"Certificate Name: " . $CertName . "\n" . \ "Name: " . $CertName . "\n" . \
"Common Name: " . $CommonName . "\n" . \ "Common Name: " . $CommonName . "\n" . \
"Fingerprint: " . $FingerPrint . "\n" . \ "Fingerprint: " . $FingerPrint . "\n" . \
"Issuer: " . $Issuer . "\n" . \ "Issuer: " . $Issuer . "\n" . \
"Validity: " . $InvalidBefore . " to " . $InvalidAfter); "Validity: " . $InvalidBefore . " to " . $InvalidAfter);
:log warning ("The certificate " . $CertName . " is about to expire in " . $ExpiresAfter . "."); :log warning ("The certificate " . $CertName . " is about to expire in " . $ExpiresAfter . ".");
} }
} else={ } else={