mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-07-31 16:24:31 +02:00
global-functions: $CertificateNameByCN: pick the first match only
This commit is contained in:
parent
e36613608c
commit
44fa91f5c4
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@
|
|||
|
||||
:global CleanName;
|
||||
|
||||
:local Cert [ /certificate/find where (common-name=$Match or fingerprint=$Match or name=$Match) ];
|
||||
:local Cert ([ /certificate/find where (common-name=$Match or fingerprint=$Match or name=$Match) ]->0);
|
||||
:local CommonName [ /certificate/get $Cert common-name ];
|
||||
/certificate/set $Cert name=[ $CleanName $CommonName ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue