Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

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

marked as duplicate by Magellan, Tim Brigham, voretaq7 Oct 11 '13 at 21:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

up vote 3 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

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