Skip to contentSkip to conversation

unix - windows interop (shared secret whitespace problem)

Openvpn-devel Adam Laurie 2 participants 2 messages Oct 20, 2003

lore
Share & tools
lore
#0 lore raw

hi,

first off, props for openvpn, and in particular for releasing the windows version... you ended 3 weeks of windows - unix vpn misery that was making my life hell! thanks a milion guys! :)

this was just a quick note to request that you do some whitespace foo (in particular CR/LF stuff) for the openvpn generated secret files as this seems to cause pain when setting up keys generated by one or other platform and then transferring them (my test platform was win2k -> freebsd-4.8).

cheers,
Adam

Signature · 6 lines
Adam Laurie                   Tel: +44 (20) 8742 0755
A.L. Digital Ltd.             Fax: +44 (20) 8742 5995
The Stores                    http://www.thebunker.net
2 Bath Road                   http://www.aldigital.co.uk
London W4 1LT                 mailto:[email protected]...
UNITED KINGDOM                PGP key on keyservers
#1 lore raw
Quoted 5 lines · Adam Laurie

hi,

first off, props for openvpn, and in particular for releasing the windows version... you ended 3 weeks of windows - unix vpn misery that was making my life hell! thanks a milion guys! :)

Cool.

Quoted 5 lines

this was just a quick note to request that you do some whitespace foo (in particular CR/LF stuff) for the openvpn generated secret files as this seems to cause pain when setting up keys generated by one or other platform and then transferring them (my test platform was win2k -> freebsd-4.8).

Not sure what the problem is.

If you generate a static key on Windows, you will get CR-LF line termination.
If you generate on *nix, you will get LF-only (i.e. newline) termination.
Each platform generates interoperable keys. The only strange behaviour I noticed is if you generate a key on Linux then try to edit it with a dumb editor on windows (such as Notepad), it doesn't "get" the line termination right. But OpenVPN will still read the key correctly, as the key reader is mostly whitespace independent.

James