Page 1 of 1

OpenVPN client .ovpn with password

Posted: Mon Nov 14, 2022 10:38 am
by pikzigmar
Hello, does OpenVPN support clients with certificate and username/password? Or just password.

If so, how can I make them? Script that creates ovpn files does not give me that option.

Re: OpenVPN client .ovpn with password

Posted: Fri Nov 18, 2022 9:32 am
by ordex
yes, you can also configure username/password, on top of the certificate.
check --auth-user-pass and --auth-user-pass-verify in the manpage.
The former goes on the client, to have it prompt for the credentials, while the latter goes on the server and requires a script that processes the credentials sent by the client.

Note that OpenVPN per se does not implement any password backend.

Re: OpenVPN client .ovpn with password

Posted: Fri Nov 18, 2022 1:41 pm
by pikzigmar
ordex thanks for info. I will check it out