mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-04-19 11:39:37 +00:00
check-certificates: change order of conditions...
... to better match both loops.
This commit is contained in:
parent
87f7495534
commit
6d5274c5b1
1 changed files with 4 additions and 4 deletions
|
|
@ -164,8 +164,8 @@
|
||||||
}
|
}
|
||||||
$WaitFullyConnected;
|
$WaitFullyConnected;
|
||||||
|
|
||||||
:foreach Cert in=[ /certificate/find where !revoked !ca !scep-url expires-after<$CertRenewTime \
|
:foreach Cert in=[ /certificate/find where !revoked !scep-url expires-after<$CertRenewTime \
|
||||||
(common-name or subject-alt-name) ] do={
|
!ca (common-name or subject-alt-name) ] do={
|
||||||
:local CertVal [ /certificate/get $Cert ];
|
:local CertVal [ /certificate/get $Cert ];
|
||||||
:local LastName;
|
:local LastName;
|
||||||
:local FetchName;
|
:local FetchName;
|
||||||
|
|
@ -245,8 +245,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Cert in=[ /certificate/find where !revoked !scep-url !(expires-after=[]) \
|
:foreach Cert in=[ /certificate/find where !revoked !scep-url expires-after<$CertWarnTime \
|
||||||
expires-after<$CertWarnTime !(fingerprint=[]) ] do={
|
!(expires-after=[]) !(fingerprint=[]) ] do={
|
||||||
:local CertVal [ /certificate/get $Cert ];
|
:local CertVal [ /certificate/get $Cert ];
|
||||||
|
|
||||||
:if ([ :len [ /certificate/scep-server/find where ca-cert=($CertVal->"ca") ] ] > 0) do={
|
:if ([ :len [ /certificate/scep-server/find where ca-cert=($CertVal->"ca") ] ] > 0) do={
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue