Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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.