aboutsummaryrefslogtreecommitdiffstats
path: root/check-certificates
diff options
context:
space:
mode:
Diffstat (limited to 'check-certificates')
-rw-r--r--check-certificates3
1 files changed, 3 insertions, 0 deletions
diff --git a/check-certificates b/check-certificates
index b9c9075..ad19059 100644
--- a/check-certificates
+++ b/check-certificates
@@ -9,6 +9,7 @@
:global CertRenewUrl;
:global Identity;
+:global CertificateAvailable
:global CertificateNameByCN;
:global LogPrintExit;
:global ParseKeyValueStore;
@@ -56,6 +57,8 @@
:local CertNew [ / certificate find where common-name=($CertVal->"common-name") fingerprint!=[ :tostr ($CertVal->"fingerprint") ] expires-after>3w ];
:local CertNewVal [ / certificate get $CertNew ];
+ $CertificateAvailable ([ $ParseKeyValueStore ($CertNewVal->"issuer") ]->"CN");
+
:if ($Cert != $CertNew) do={
$LogPrintExit debug ("Certificate '" . $CertVal->"name" . "' was not updated, but replaced.") false;