mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $Certificate*: add quoting around CN
This commit is contained in:
parent
cb1e520965
commit
b1b7ed83ed
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue