1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

global-functions: $Certificate*: add quoting around CN

This commit is contained in:
Christian Hesse
2020-01-03 10:15:34 +01:00
parent cb1e520965
commit b1b7ed83ed

View File

@@ -91,7 +91,7 @@
:global WaitForFile;
:log info ("Downloading and importing certificate with " . \
"CommonName " . $CommonName . ".");
"CommonName \"" . $CommonName . "\".");
:do {
:local LocalFileName ($CommonName . ".pem");
:local UrlFileName ([ $UrlEncode $CommonName ] . ".pem");
@@ -114,7 +114,7 @@
:global CertificateDownload;
:if ([ / certificate print count-only where common-name=$CommonName ] = 0) do={
:log info ("Certificate with CommonName " . $CommonName . " not available.");
:log info ("Certificate with CommonName \"" . $CommonName . "\" not available.");
$CertificateDownload $CommonName;
}
}