<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: openvpn</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/openvpn/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Convert OpenVPN OVPN Files for use in Network Manager</title>
      <link>https://chrisjrob.com/2014/03/18/convert-openvpn-ovpn-files-for-use-in-network-manager/</link>
      <pubDate>Tue, 18 Mar 2014 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2014/03/18/convert-openvpn-ovpn-files-for-use-in-network-manager</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/openvpn.png" align="right" alt="Featured Image">
         
         <p>Anyone who has enjoyed the dubious benefits of working with IPSEC will
find <a href="http://openvpn.net/" title="OpenVPN">OpenVPN</a> a delight, but what do you
do with your client.ovpn file once you have it?</p>

<p>If you spend most of your time in a terminal anyway, then I would
suggest just putting all your client.ovpn files into <code class="language-plaintext highlighter-rouge">~/.openvpn</code>,
renaming them in some appropriate way, and then using them simply by
typing:</p>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo openvpn client.ovpn
</code></pre></div></div>

<p>If, on the other hand, you live in a more graphically orientated world,
then you might like to integrate them into Network Manager. Sadly, the
Import feature in Ubuntu does not work, at least in the versions of
Ubuntu that I have used, and you have to make a few changes first.</p>

<p>Firstly, I would always create a hidden directory into which to store
your client files:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ mkdir ~/.openvpn
$ cd ~/.openvpn
$ mv ~/Downloads/client.ovpn ./
</code></pre></div></div>

<p>Secondly, you need to ensure that you have installed openvpn for
network-manager:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install network-manager-openvpn-gnome
</code></pre></div></div>

<p>Thirdly, we need to extract some data out of the client.ovpn, and for
this I followed <a href="http://howto.praqma.net/ubuntu/vpn/openvpn-access-server-client-on-ubuntu" title="OpenVPN Access Server Client on Ubuntu">these
instructions</a>,
which I include below in case of link breakage:</p>

<ol>
  <li>Open client.ovpn in your favour text editor and copy the lines
between the &lt;ca&gt; tags into a new file named client.ca.</li>
  <li>Remove &lt;ca&gt; section including tags.</li>
  <li>Now copy the lines between the &lt;cert&gt; tags into a new file
named client.crt.</li>
  <li>Remove &lt;cert&gt; section including tags.</li>
  <li>Now copy the lines between &lt;key&gt; tags into a new file
named client.key.</li>
  <li>Remove &lt;key&gt; section including tags.</li>
  <li>Now copy the lines between &lt;tls-auth&gt; tags into a new file named
client.tls.</li>
  <li>Remove &lt;tls-auth&gt; section including tags.</li>
  <li>Remove the line “key-direction 1”.</li>
  <li>Insert the following text above the line # —–BEGIN RSA
SIGNATURE—– :</li>
</ol>

<!-- -->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ca client.ca
cert client.crt
key client.key
tls-auth client.tls 1
</code></pre></div></div>

<p>Finally, save and close all the files and check that you now have all
the above files sitting happily in your ~/.openvpn directory.</p>

<p>Go to Network Manager -&gt; Edit Connections -&gt;VPN and click Import,
browse to the modified client.ovpn import that file.</p>

<p>Enter vpn username and password if prompted.</p>

<p>On the VPN page, select Advanced and on the General Tab, uncheck the
first option, “Use custom gateway.</p>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
