Home Gnome Network Manager OpenVPN AS Import from ovpn file
Post
Cancel

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.

-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----

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.

-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----

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.

-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----

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.

-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----

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

ca ca.crt
cert client.crt
key client.key
tls-auth ta.key 1

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

This post is licensed under CC BY 4.0 by the author.

If you have found this site useful, please consider buying me a coffee :)

Proud supporter of the Gnome Foundation

Become a Friend of GNOME

Add Custom Fields Horde 5 Turba

Ubuntu/Linux WIll not sleep when MythTV Backend is running

Comments powered by Disqus.