mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-27 22:34:58 +02:00
global-functions: $CertificateDownload: use single quotes
This commit is contained in:
parent
7aa5059f6d
commit
e1781fb805
1 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
|
||||||
$LogPrint info $0 ("Downloading and importing certificate with " . \
|
$LogPrint info $0 ("Downloading and importing certificate with " . \
|
||||||
"CommonName \"" . $CommonName . "\".");
|
"CommonName '" . $CommonName . "'.");
|
||||||
:do {
|
:do {
|
||||||
:local FileName ([ $CleanName $CommonName ] . ".pem");
|
:local FileName ([ $CleanName $CommonName ] . ".pem");
|
||||||
/tool/fetch check-certificate=yes-without-crl http-header-field=({ [ $FetchUserAgentStr $0 ] }) \
|
/tool/fetch check-certificate=yes-without-crl http-header-field=({ [ $FetchUserAgentStr $0 ] }) \
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
$CertificateNameByCN [ /certificate/get $Cert common-name ];
|
$CertificateNameByCN [ /certificate/get $Cert common-name ];
|
||||||
}
|
}
|
||||||
} on-error={
|
} on-error={
|
||||||
$LogPrint warning $0 ("Failed importing certificate with CommonName \"" . $CommonName . "\"!");
|
$LogPrint warning $0 ("Failed importing certificate with CommonName '" . $CommonName . "'!");
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
:return true;
|
:return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue