check-certificates: make sure fingerprint is a string

This makes sure the condition below works for certificate templates,
which do not have a fingerprint.
This commit is contained in:
Christian Hesse 2019-04-11 22:22:05 +02:00
parent 20d7020fe3
commit 5273efda21

View file

@ -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={