Page 1 of 1

remapping of special characters

Posted: Wed Jul 20, 2011 4:07 pm
by reinhard.frank
Hello all,

currently I am using as common name CN := "k4UDuEh==" and additionally configured "no-name-remapping" on the server side in order to avoid that OpenVPN remaps any character.

Nevertheless i can see in the server trace below that the common name is used with "k4UDuEh==/" but OpenVPN looks in this directory for a file k4UDuEh__

Server trace:
"Wed Jul 20 17:02:31 2011 us=703000 k4UDuEh==/192.168.178.26:4838 OPTIONS IMPORT: reading client specific options from: ccd_test\k4UDuEh__"

I am using openvpn2.1 version. Any idea? Where is my misstake?

regards Reinhard

Re: remapping of special characters

Posted: Tue Jul 26, 2011 8:12 pm
by Mimiko
--no-name-remapping
Allow Common Name, X509 Subject, and username strings to include any printable character including space, but excluding control characters such as tab, newline, and carriage-return.

By default, OpenVPN will remap any character other than alphanumeric, underbar ('_'), dash ('-'), dot ('.'), and slash ('/') to underbar ('_'). The X509 Subject string as returned by the tls_id environmental variable, can additionally contain colon (':') or equal ('=').
I think equal and colon is remapped anyway.