OpenVPN client .ovpn with password

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
pikzigmar
OpenVpn Newbie
Posts: 8
Joined: Fri Sep 23, 2022 12:04 pm

OpenVPN client .ovpn with password

Post by pikzigmar » Mon Nov 14, 2022 10:38 am

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.

User avatar
ordex
OpenVPN Inc.
Posts: 444
Joined: Wed Dec 28, 2016 2:32 am
Location: IRC #openvpn-devel @ libera.chat

Re: OpenVPN client .ovpn with password

Post by ordex » Fri Nov 18, 2022 9:32 am

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.

pikzigmar
OpenVpn Newbie
Posts: 8
Joined: Fri Sep 23, 2022 12:04 pm

Re: OpenVPN client .ovpn with password

Post by pikzigmar » Fri Nov 18, 2022 1:41 pm

ordex thanks for info. I will check it out

Post Reply