mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $CertificateAvailable: use single quotes
This commit is contained in:
@@ -107,7 +107,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :len [ /certificate/find where common-name=$CommonName ] ] = 0) do={
|
:if ([ :len [ /certificate/find where common-name=$CommonName ] ] = 0) do={
|
||||||
$LogPrint info $0 ("Certificate with CommonName \"" . $CommonName . "\" not available.");
|
$LogPrint info $0 ("Certificate with CommonName '" . $CommonName . "' not available.");
|
||||||
:if ([ $CertificateDownload $CommonName ] = false) do={
|
:if ([ $CertificateDownload $CommonName ] = false) do={
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
@@ -116,8 +116,8 @@
|
|||||||
:local CertVal [ /certificate/get [ find where common-name=$CommonName ] ];
|
:local CertVal [ /certificate/get [ find where common-name=$CommonName ] ];
|
||||||
:while (($CertVal->"akid") != "" && ($CertVal->"akid") != ($CertVal->"skid")) do={
|
:while (($CertVal->"akid") != "" && ($CertVal->"akid") != ($CertVal->"skid")) do={
|
||||||
:if ([ :len [ /certificate/find where skid=($CertVal->"akid") ] ] = 0) do={
|
:if ([ :len [ /certificate/find where skid=($CertVal->"akid") ] ] = 0) do={
|
||||||
$LogPrint info $0 ("Certificate chain for \"" . $CommonName . \
|
$LogPrint info $0 ("Certificate chain for '" . $CommonName . \
|
||||||
"\" is incomplete, missing \"" . ([ $ParseKeyValueStore ($CertVal->"issuer") ]->"CN") . "\".");
|
"' is incomplete, missing '" . ([ $ParseKeyValueStore ($CertVal->"issuer") ]->"CN") . "'.");
|
||||||
:if ([ $CertificateDownload $CommonName ] = false) do={
|
:if ([ $CertificateDownload $CommonName ] = false) do={
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user