mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 18:25:17 +02:00
check-certificates: decrease log severity to info
This commit is contained in:
parent
19ed080244
commit
348cc2e3f3
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ $WaitFullyConnected;
|
|||
|
||||
:do {
|
||||
:if ([ :len $CertRenewUrl ] = 0) do={
|
||||
$LogPrintExit warning ("No CertRenewUrl given.") true;
|
||||
$LogPrintExit info ("No CertRenewUrl given.") true;
|
||||
}
|
||||
|
||||
:foreach Type in={ ".pem"; ".p12" } do={
|
||||
|
@ -114,7 +114,7 @@ $WaitFullyConnected;
|
|||
"Issuer: " . ($CertVal->"ca") . ([ $ParseKeyValueStore ($CertVal->"issuer") ]->"CN") . "\n" . \
|
||||
"Validity: " . ($CertVal->"invalid-before") . " to " . ($CertVal->"invalid-after") . "\n" . \
|
||||
"Expires in: " . [ $IfThenElse (($CertVal->"expired") = true) "expired" [ $FormatExpire ($CertVal->"expires-after") ] ]);
|
||||
$LogPrintExit warning ("The certificate " . ($CertVal->"name") . " " . $State . \
|
||||
$LogPrintExit info ("The certificate " . ($CertVal->"name") . " " . $State . \
|
||||
", it is invalid after " . ($CertVal->"invalid-after") . ".") false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue