mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-18 06:59:32 +00:00
global-functions: $CertificateAvailable: get missing certificate...
... not the issued and available one.
This commit is contained in:
parent
ad455c8f1d
commit
d673f0956c
1 changed files with 3 additions and 3 deletions
|
|
@ -150,9 +150,9 @@
|
|||
:local CertVal [ /certificate/get [ find where common-name=$CommonName ] ];
|
||||
:while (($CertVal->"akid") != "" && ($CertVal->"akid") != ($CertVal->"skid")) do={
|
||||
:if ([ :len [ /certificate/find where skid=($CertVal->"akid") ] ] = 0) do={
|
||||
$LogPrint info $0 ("Certificate chain for '" . $CommonName . \
|
||||
"' is incomplete, missing '" . ([ $ParseKeyValueStore ($CertVal->"issuer") ]->"CN") . "'.");
|
||||
:if ([ $CertificateDownload $CommonName ] = false) do={
|
||||
:local IssuerCN ([ $ParseKeyValueStore ($CertVal->"issuer") ]->"CN");
|
||||
$LogPrint info $0 ("Certificate chain for '" . $CommonName . "' is incomplete, missing '" . $IssuerCN . "'.");
|
||||
:if ([ $CertificateDownload $IssuerCN ] = false) do={
|
||||
:return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue