aboutsummaryrefslogtreecommitdiffstats
path: root/check-certificates
diff options
context:
space:
mode:
Diffstat (limited to 'check-certificates')
-rw-r--r--check-certificates3
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 {