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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user