mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-certificates: exclude certificates issued by SCEP
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
$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 ];
|
||||
|
||||
: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 ExpiresAfter [ $FormatExpire ($CertVal->"expires-after") ];
|
||||
|
Reference in New Issue
Block a user