From 010e2d6b05f9aaed3adccd72ae1903664a373e96 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 18 Dec 2020 16:02:31 +0100 Subject: check-certificates: make the certificate renewal time configurable --- check-certificates | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'check-certificates') diff --git a/check-certificates b/check-certificates index f3a8e99..4531c3d 100644 --- a/check-certificates +++ b/check-certificates @@ -7,6 +7,7 @@ # https://git.eworm.de/cgit/routeros-scripts/about/doc/check-certificates.md :global CertRenewPass; +:global CertRenewTime; :global CertRenewUrl; :global Identity; @@ -28,7 +29,7 @@ $WaitFullyConnected; -:foreach Cert in=[ / certificate find where !revoked !ca !scep-url expires-after<3w ] do={ +:foreach Cert in=[ / certificate find where !revoked !ca !scep-url expires-after<$CertRenewTime ] do={ :local CertVal [ / certificate get $Cert ]; :do { -- cgit v1.2.3-54-g00ecf