mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-18 08:38:34 +02:00
check-certificates: exclude certificates issued by SCEP
This commit is contained in:
parent
1cde38e2da
commit
1282a91f04
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
||||||
$LogPrintExit warning "Time is not yet synchronized." true;
|
$LogPrintExit warning "Time is not yet synchronized." true;
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Cert in=[ / certificate find where !revoked !ca expires-after<3w ] do={
|
:foreach Cert in=[ / certificate find where !revoked !ca !scep-url expires-after<3w ] do={
|
||||||
:local CertVal [ / certificate get $Cert ];
|
:local CertVal [ / certificate get $Cert ];
|
||||||
|
|
||||||
:do {
|
:do {
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Cert in=[ / certificate find where !revoked expires-after<2w fingerprint~"."] do={
|
:foreach Cert in=[ / certificate find where !revoked !scep-url expires-after<2w fingerprint~"."] do={
|
||||||
:local CertVal [ / certificate get $Cert ];
|
:local CertVal [ / certificate get $Cert ];
|
||||||
|
|
||||||
:local ExpiresAfter [ $FormatExpire ($CertVal->"expires-after") ];
|
:local ExpiresAfter [ $FormatExpire ($CertVal->"expires-after") ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue