You can leave everything default except for the following fields: export KEY_COUNTRY='US'Įxport these fields to your liking,save the file and we can generate the master CA certificate and key. Now we need to edit the “vars” file which holds some information about the certificate: sudo vim /etc/openvpn/easy-rsa/vars It also comes with some example files which we’ll use: sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa/ OpenVPN uses the /etc/openvpn folder and this is where we create a new folder called “easy-rsa”. Now we have to configure our CA (Certificate Authority) and generate some keys: sudo mkdir /etc/openvpn/easy-rsa/
OpenVPN is in the default repositories so that’s easy enough. Let’s instal openvpn: sudo apt-get install openvpn First I will show you how to configure the server and then the client, in my example I’m using Ubuntu 12.04 but you should be able to do this on any linux distribution. The configuration will be pretty straight forward and will be a great starting point for more complex openvpn configurations.
In this lesson I’m going to show you how to configure OpenVPN server using username / password authentication on the client.