Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

With the auth-user-pass filename option is it possible to create a plain text file with username and passphrase.

Is it possible to have the username and passphrase directly in the client.conf?

share|improve this question
possible duplicate of openvpn: auth-user-pass or (and?) passphrase? – quanta Sep 9 '12 at 15:13

2 Answers

up vote 2 down vote accepted

Not without recompiling openvpn. It's made this way to discourage putting them there.

If you want to have automatic VPN channel negotiation you really should use certificates and private keys. There should be an easy-rsa directory in documentation with scripts that will make it easier to set up single-purpose CA.

If you can't reconfigure the server (because you're not its administrator) then you really shouldn't keep your passwords in plain-text files...

share|improve this answer

You would have to recompile openvpn. Take a look here to build on Windows. It is always better to use certificates and private keys instead of plain text passwords

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.