aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-04-11 22:22:05 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-04-11 22:22:05 +0200
commit5273efda21a7149af1b63b411e14af37e447afcb (patch)
treeb840ee421303b28976dc252856926930fd188771
parent20d7020fe3a2f1e2149fa051526982f9910b67fa (diff)
check-certificates: make sure fingerprint is a string
This makes sure the condition below works for certificate templates, which do not have a fingerprint.
-rw-r--r--check-certificates2
1 files changed, 1 insertions, 1 deletions
diff --git a/check-certificates b/check-certificates
index 15e14ea..bd1e0ed 100644
--- a/check-certificates
+++ b/check-certificates
@@ -28,7 +28,7 @@
:foreach Cert in=[ / certificate find where !revoked expires-after<3w ] do={
:local CertName [ / certificate get $Cert name ];
:local CommonName [ / certificate get $Cert common-name ];
- :local FingerPrint [ / certificate get $Cert fingerprint ];
+ :local FingerPrint [ :tostr [ / certificate get $Cert fingerprint ] ];
:do {
:if ([ :len $CertRenewUrl ] = 0) do={