aboutsummaryrefslogtreecommitdiffstats
path: root/certificate-renew-issued
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-03-20 08:56:13 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-03-20 09:26:12 +0100
commit1e7e19cc870f6e7caa3976ac40f6d0fd8f58332e (patch)
tree65dfa20f59a82f84b020c2d94f00a083f64923ed /certificate-renew-issued
parent739884ecc71ddce1c10f546ed1cd4348298513fb (diff)
certificate-renew-issued: log action
Diffstat (limited to 'certificate-renew-issued')
-rw-r--r--certificate-renew-issued5
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;
}
}