mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 10:04:19 +02:00
global-functions: $CertificateNameByCN: use $CleanName
This commit is contained in:
parent
09988d9892
commit
821dd02e5e
|
@ -168,11 +168,10 @@
|
|||
:set CertificateNameByCN do={
|
||||
:local CommonName [ :tostr $1 ];
|
||||
|
||||
:global CharacterReplace;
|
||||
:global CleanName;
|
||||
|
||||
:local Cert [ /certificate/find where common-name=$CommonName ];
|
||||
/certificate/set $Cert \
|
||||
name=[ $CharacterReplace [ $CharacterReplace [ $CharacterReplace $CommonName "'" "-" ] " " "-" ] "---" "-" ];
|
||||
/certificate/set $Cert name=[ $CleanName $CommonName ];
|
||||
}
|
||||
|
||||
# multiply given character(s)
|
||||
|
|
Loading…
Reference in a new issue