mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-01 16:54:38 +02:00
check-certificates: make the certificate renewal time configurable
This commit is contained in:
parent
be75772256
commit
010e2d6b05
5 changed files with 7 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue