check-certificates: make the certificate renewal time configurable

This commit is contained in:
Christian Hesse 2020-12-18 16:02:31 +01:00
parent be75772256
commit 010e2d6b05
5 changed files with 7 additions and 4 deletions

View file

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