install package openvpn
cp /usr/share/doc/openvpn/server.conf /etc/openvpn
cp /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn
cd /etc/openvpn/easy-rsa/2.0/
Vi vars and change
export KEY_COUNTRY=” ”
export KEY_PROVINCE=””
export KEY_CITY=” ”
export KEY_ORG=””
export KEY_EMAIL=””
type the command
source ./vars
./clean-all
./build-ca
You will be asked to answer the questions you filled up top.
./build-key-server server
You will have to answer the same questions above. It will ask you for a password, I suggest you don’t put a password when it ask.
Click yes to sign the certificate.
Now to build the client files.
Type
./build-key client1
And once again you will need to answer the questions above. I still don’t recommend you putting a password as it can cause problems when I have tried.
Next you will want to type ./build-dh
cd /etc/openvpn/
vim server.conf
and set correct path for keys
/etc/init.d/openvpn start
Bye