diff options
author | Christian Hesse <mail@eworm.de> | 2020-03-20 08:56:13 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-03-20 09:26:12 +0100 |
commit | 1e7e19cc870f6e7caa3976ac40f6d0fd8f58332e (patch) | |
tree | 65dfa20f59a82f84b020c2d94f00a083f64923ed /certificate-renew-issued | |
parent | 739884ecc71ddce1c10f546ed1cd4348298513fb (diff) |
certificate-renew-issued: log action
Diffstat (limited to 'certificate-renew-issued')
-rw-r--r-- | certificate-renew-issued | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/certificate-renew-issued b/certificate-renew-issued index 32da774..d5ff2c8 100644 --- a/certificate-renew-issued +++ b/certificate-renew-issued @@ -6,6 +6,7 @@ :global CertIssuedExportPass; +:global LogPrintExit; :global MkDir; :foreach Cert in=[ / certificate find where issued expires-after<3w ] do={ @@ -20,5 +21,9 @@ / certificate export-certificate ($CertVal->"name") type=pkcs12 \ file-name=("cert-issued/" . $CertVal->"common-name") \ export-passphrase=($CertIssuedExportPass->($CertVal->"common-name")); + $LogPrintExit info ("Issued a new certificate for \"" . $CertVal->"common-name" . \ + "\", exported to \"cert-issued/" . $CertVal->"common-name" . ".p12\".") false; + } else={ + $LogPrintExit info ("Issued a new certificate for \"" . $CertVal->"common-name" . "\".") false; } } |