openvpn@aetm.us wroteI tried all these tips, with and without the full path, and then including the double "\\". That line in the .ovpn file now reads:
auth-user-pass "C:\\Program Files\\OpenVPN\\config\\login.conf"
OpenVPN still prompts me for a user and pass. Help!
Just create a new file using Notepad++
type in just 2 rows:
[username]
[pass]
your file should look like this:
John_Doe
mypassword
Go to Save As and select the config folder of your OpenVpn install (i.e. C:\Program Files\OpenVPN\config)
Save as "login.conf" . Select filetype "All Files".
Add to your .ovpn connection profile :
auth-user-pass login.conf
**Make sure this is the only line in the file like "auth-user-pass"
Save.
Connect.
This was the only way i could get it working on OpenVPN GUI v5-A.
Whenever i tried with a .txt pass file i would get " no such directory/ file...etc", even though the path was correct.