This is how you can take an OpenVPN .ovpn config file and extract the certificates/keys required to import the profile into NetworkManager.
- Download the .ovpn file. Save it somewhere you can store it permanently (I use ~/.vpn).
- Copy from between <ca> tags into ca.crt, remove <ca> tags.
- Copy from between <cert> tags into client.crt, remove <cert> tags.
- Copy from between <key> tags into client.key, remove <key> tags.
- Copy from between <tls-auth> tags into ta.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
- Import the .ovpn file into NetworkManager and save the profile.
I had the same idea but wasn't sure it would work like this so I ended up here :)
In my case it's just
<tls-crypt>
brackets instead of<tls-auth>
but will work the same way.Starred this gist 👍