How to auto login with OpenVPN

2

OpenVPN v5. ask about password in every connection try, so I want to automate this process. I created file password.txt with username/password and added line auth-user-pass password.txt to .ovpn config file, but client still ask me for password. What's wrong?

.ovpn file:

client
dev tun
proto udp
remote ***** 1194
resolv-retry infinite
nobind
persist-key
persist-tun
auth-user-pass password.txt
ca ca.crt
cert *****.crt
key *****.key
ns-cert-type server
tls-auth ta.key 1
comp-lzo
verb 3
route-method exe
route-delay 2

password.txt:

login
password

Gorky

Posted 2014-04-10T14:20:23.720

Reputation: 21

No answers