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?
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...