How you can take an OpenVPN .ovpn config file and extract the certificates/keys
- Copy from between
<ca>tags intoca.crt, remove<ca>tags from original file. - Copy from between
<cert>tags intoclient.crt, remove<cert>tags. - Copy from between
<key>tags into client.key, remove<key>tags. - Copy from between
<tls-auth>tags intota.key, remove<tls-auth>tags. - Remove the line “
key-direction 1” - Above
"# -----BEGIN RSA SIGNATURE-----"insert the following lines.
ca ca.crt
cert client.crt
key client.key
tls-auth ta.key 1
Done.
Source: here