aboutsummaryrefslogtreecommitdiffstats
path: root/check-certificates
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-01-23 17:27:34 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-01-23 17:46:03 +0100
commit555d0e8bfc8d3773fa05302303b43ed43e5f27a1 (patch)
tree5b927bc07f393cc5c9771593016833b43753d512 /check-certificates
parent36a8938dead84e97b6de67b2911e2186d12123a3 (diff)
check-certificates: make the warning time configurablechange-89
Diffstat (limited to 'check-certificates')
-rw-r--r--check-certificates4
1 files changed, 3 insertions, 1 deletions
diff --git a/check-certificates b/check-certificates
index 9802cde..2bf2443 100644
--- a/check-certificates
+++ b/check-certificates
@@ -13,6 +13,7 @@
:global CertRenewPass;
:global CertRenewTime;
:global CertRenewUrl;
+:global CertWarnTime;
:global Identity;
:global CertificateAvailable
@@ -103,7 +104,8 @@ $WaitFullyConnected;
}
}
-:foreach Cert in=[ /certificate/find where !revoked !scep-url !(expires-after=[]) expires-after<2w !(fingerprint=[]) ] do={
+:foreach Cert in=[ /certificate/find where !revoked !scep-url !(expires-after=[]) \
+ expires-after<$CertWarnTime !(fingerprint=[]) ] do={
:local CertVal [ /certificate/get $Cert ];
:if ([ :len [ /certificate/scep-server/find where ca-cert=($CertVal->"ca") ] ] > 0) do={