Put the keys, certificates, and client configuration file in the proper folders...
/etc/openvpn/ca.crt
/etc/openvpn/client/client0.crt
/etc/openvpn/client/client0.key
/etc/openvpn/client/ta.key
/etc/openvpn/client/client0.conf
Enable OpenVPN client service to start at boot and start it...
systemctl enable openvpn-client@client0
systemctl start openvpn-client@client0
NOTE: In the example "client0" is the name of the configuration chosen!
TIP: Client configuration example...
client
remote <OPENVPN_SERVER_IP_OR_NAME> 1194
dev tun
proto udp
resolv-retry infinite
nobind
persist-key
persist-tun
verb 3
cipher AES-256-CBC
keepalive 10 120
compress lz4-v2
auth-nocache
remote-cert-tls server
ca /etc/openvpn/ca.crt
cert /etc/openvpn/client/client0.crt
key /etc/openvpn/client/client0.key
tls-auth /etc/openvpn/client/ta.key 1
Thanks! =D
whatever.ovpn
to/etc/openvpn/
. You'll have to have root rights for this and rename it towhatever.conf
. Good luck! – Klaus-Dieter Warzecha Feb 25 '14 at 22:56