aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
}