mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-08-10 10:31:36 +00:00
global-functions: $CertificateDownload: accept name in unit (OU)
This commit is contained in:
parent
06a9544dd3
commit
ee757e0934
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@
|
|||
:delay 1s;
|
||||
$RmFile $FileName;
|
||||
|
||||
:if ([ :len [ /certificate/find where common-name=$CommonName ] ] = 0) do={
|
||||
:if ([ :len [ /certificate/find where common-name=$CommonName or unit=$CommonName ] ] = 0) do={
|
||||
/certificate/remove [ find where name~("^" . $FileName . "_[0-9]+\$") ];
|
||||
$LogPrint warning $0 ("Certificate with CommonName '" . $CommonName . "' still unavailable!");
|
||||
:return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue