mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-02 17:24:36 +02:00
global-functions: $CertificateNameByCN: use $CleanName
This commit is contained in:
parent
09988d9892
commit
821dd02e5e
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue