mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-certificates: warn about missing chain
This commit is contained in:
parent
a304a2fa69
commit
151630b674
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@
|
|||
:local CertNew [ / certificate find where common-name=($CertVal->"common-name") fingerprint!=[ :tostr ($CertVal->"fingerprint") ] expires-after>3w ];
|
||||
:local CertNewVal [ / certificate get $CertNew ];
|
||||
|
||||
$CertificateAvailable ([ $ParseKeyValueStore ($CertNewVal->"issuer") ]->"CN");
|
||||
:if ([ $CertificateAvailable ([ $ParseKeyValueStore ($CertNewVal->"issuer") ]->"CN") ] = false) do={
|
||||
$LogPrintExit warning ("The certificate chain is not available!") false;
|
||||
}
|
||||
|
||||
:if ($Cert != $CertNew) do={
|
||||
$LogPrintExit debug ("Certificate '" . $CertVal->"name" . "' was not updated, but replaced.") false;
|
||||
|
|
Loading…
Reference in a new issue