I quite rare configuring OpenVPN severs, and I am forgetting main command which I need to generate keys and so on.

So here is my set of commands:

sudo su
cd /etc/openvpn
mkdir easy-rsa
cd easy-rsa
cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/* ./

edit tail of the vars file

source ./vars
./clean-all
./build-ca
./build-key-server my-sever
./build-dh
openvpn --genkey -- secret keys/ta.key
./build-key me

that’s all.

Here my example of a server config. And here you can find good ovpn generator. But do not forget change cipher type in the generator.