This tutorial shows how to configure a Private Internet Access VPN in Fedora.
First, make sure you have openvpn in your system. If not:
$ sudo yum install openvpn
PIA has 2 types of credentials: a common SSL certificate, a credential that provides their authentication, and your username and password, for yours.
Copy your ca.crt into /etc/openvpn.
Copy your credentials to a file:
$ echo “YOUR PIA USERNAME” > ~/.pia
$ echo “YOUR PIA PASSWORD” >> ~/.pia
$ sudo chown root:root ~/.pia
$ sudo chmod 400 ~/.pia
$ sudo mv ~/.pia /root/
Server Config File
Now configure your server.conf file at
$subl /etc/openvpn/server.conf with some of their servers' configuration. For example:
remote swiss.privateinternetaccess.com 1194
$ sudo openvpn --config '/etc/openvpn/server.conf'