currently I am using username and password to connect to server.
May I ask for a server and client configuration to connect to server only with the use of certificate so that I may try, study and implement it myself in my server and client configuration.
Thank you.
openvpn connection
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: openvpn connection
just follow the howto:
http://openvpn.net/index.php/open-sourc ... l#examples
some work on your part is required.
http://openvpn.net/index.php/open-sourc ... l#examples
some work on your part is required.
-
- OpenVPN User
- Posts: 21
- Joined: Tue May 17, 2011 7:44 am
Re: openvpn connection
I have already my configurations JanJust but it uses user/passwd authentication.
What I want to try is without user/passwd authentication but with certs only.
Kindly.
What I want to try is without user/passwd authentication but with certs only.
Kindly.
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: openvpn connection
The HOWTO explains this quite nicely - did you read it?
on the server side it boils down to commenting out the user auth part (auth-user-pass-verify or some plugin)
on the client side you'd replace 'auth-user ....' by
that's it. Instructions on how to generate client.{crt,key} are in the HOWTO as well, using the 'easy-rsa' script. The script you want is 'build-key'
on the server side it boils down to commenting out the user auth part (auth-user-pass-verify or some plugin)
on the client side you'd replace 'auth-user ....' by
Code: Select all
cert client.crt
key client.key
-
- OpenVPN User
- Posts: 21
- Joined: Tue May 17, 2011 7:44 am
Re: openvpn connection
yes I did read the howto Janjust.
If I am going to make the certs as login authentication, then it should be unique per user, right. So I need to create certs that is unique per client.
If I am going to make the certs as login authentication, then it should be unique per user, right. So I need to create certs that is unique per client.
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: openvpn connection
yes, that is recommended anyways, as it will allow you to distinguish between different clients/users.