Authenticatig clients with certificates & username 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
shaia
OpenVpn Newbie
Posts: 2
Joined: Sat Oct 30, 2010 8:11 am

Authenticatig clients with certificates & username password

Post by shaia » Sat Oct 30, 2010 8:16 am

Hi All,

Can the openvpn server be configured so that it will allow connections from clients only if the clients have both a valid username/password and a valid certificate?
I am looking for something which is equivalent to ssh logins with a password protected private key, where the ssh server does not allow password only logins

Thanks,
Shai

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: Authenticatig clients with certificates & username passw

Post by krzee » Wed Nov 03, 2010 5:03 am

[01:04] <krzee> !authpass
[01:04] <vpnHelper> krzee: "authpass" is (#1) please see --auth-user-pass-verify in the manual to learn how to force clients to use passwords in addition to certs, or (#2) or to ONLY use passwords (no certs, highly NOT recommended) also use --client-cert-not-required, or (#3) and if you want the login name to be used as the common-name for things like ccd entries, use --username-as-common-name

im lazy so i used my IRC bot to answer, let me know if that helped :)

shaia
OpenVpn Newbie
Posts: 2
Joined: Sat Oct 30, 2010 8:11 am

Re: Authenticatig clients with certificates & username passw

Post by shaia » Mon Nov 08, 2010 6:51 pm

Maybe I didn't understand OpenVPN at all ...

If I don't use the --client-cert-not-required switch, the server will require a client certificate?

Does this mean the if I guess a correct username/password (i.e. admin/admin) I cannot connect to the server because I am missing a certificate?

Shai

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: Authenticatig clients with certificates & username passw

Post by krzee » Tue Nov 16, 2010 8:18 am

shaia wrote: If I don't use the --client-cert-not-required switch, the server will require a client certificate?
if you use this option, the server will NOT require the client certificate
Does this mean the if I guess a correct username/password (i.e. admin/admin) I cannot connect to the server because I am missing a certificate?
if you do not use the above option, that would be true (and more secure)

Post Reply