mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-08-09 18:11:36 +00:00
global-functions: $CertificateDownload: pass OU on exact match
This commit is contained in:
parent
4cac06774c
commit
384a02212d
1 changed files with 3 additions and 1 deletions
|
|
@ -172,6 +172,7 @@
|
|||
|
||||
:global CertificateNameByCN;
|
||||
:global CleanName;
|
||||
:global IfThenElse;
|
||||
:global FetchUserAgentStr;
|
||||
:global LogPrint;
|
||||
:global RmFile;
|
||||
|
|
@ -222,7 +223,8 @@
|
|||
}
|
||||
|
||||
:foreach Cert in=[ /certificate/find where name~("^" . $FileName . "_[0-9]+\$") ] do={
|
||||
$CertificateNameByCN [ /certificate/get $Cert common-name ];
|
||||
$CertificateNameByCN [ $IfThenElse ([ /certificate/get $Cert unit ] = $CommonName) \
|
||||
$CommonName [ /certificate/get $Cert common-name ] ];
|
||||
}
|
||||
:return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue