diff options
author | Christian Hesse <mail@eworm.de> | 2020-12-18 16:02:31 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-12-18 16:02:31 +0100 |
commit | 010e2d6b05f9aaed3adccd72ae1903664a373e96 (patch) | |
tree | ca05e712a9f83a6fbebfd4c3f4229bedb7664fdc /check-certificates | |
parent | be757722560df23796a3b0e3b290e6265b043431 (diff) |
check-certificates: make the certificate renewal time configurablechange-40
Diffstat (limited to 'check-certificates')
-rw-r--r-- | check-certificates | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |