If you try to pass OpenVPN username / password from a file using the --auth-user-pass switch, you will receive the following error:
"Sorry, 'Auth' password cannot be read from a file."
At least they are polite.
So, our workaround was to programmatically write "standard in" when we get Auth Username: and Auth Password: (in C #).
Something over time is not 100% more reliable, so I was looking for a way to transfer OpenVPN credentials in another way and came across this message: OpenVPN message
It says that you can recompile the source code with the --enable-password-save option. Could anyone do this?
My last question is: how do I pass the auth username / password to openvpn.exe on the client side? And does OpenVPNGUI do it somehow (maybe we can copy what they do)?
source
share