Gnome Network Manager OpenVPN AS Import from ovpn file

I like to use the network applet within Linux instead of using the supplied openVPN terminal tool.

Download the ovpn file which by default is called client.ovpn

Now we need to extract the following from the file into new files:

  • ca.cert
  • client.crt
  • client.key
  • ta.key

Copy everything in between the two ca’s as shown below into a file called ca.cert. Remove the < ca > and < /ca > from the original file.

Now copy everything in between the two cert’s as shown below into a file called client.crt. Remove the < cert > and < /cert > from the original file.

Now copy everything in between the two key’s as shown below into a file called client.key. Remove the < key > and < /key > from the original file.

Now copy everything in between the two tls-auth’s as shown below into a file called ta.key. Remove the < tls-auth > and < /tls-auth > from the original file.

Now save the ovpn file and insert the following just below the above text:

You should have the following files in the directory with the ovpn file.

VPN Files
Now open the Network Manager, click the plus sign, select VPN and then choose Import from file. Select the ovpn file and it should auto fill in all the settings except for the password and username.
Create new vpn connection

Please share 🙂