Got this from PIA forum:
I thought I'd post this because the info isn't easily available, and actually it's pretty easy if you follow the instructions (thanks Cory Thompson).
1. go to the client support pages of private internet access site and download the OpenVPN Configuration Files (Default)
2. from the zip file we need ca.crt crl.pem and any of the ovpn files
3. rename the ovpn file to client.conf.
4. open the client.conf in a text editor and modify the line "auth-user-pass" so it reads "auth-user-pass password.conf" (without the quotes)
I have been plating around with digibit and there setup is similar. I didnt need to rename to Client.conf I just named the location extension to .conf
What I have done is used putty
On box I created a folder called digibit and dragged all the configs to that folder.
Now I used putty in typed
this will put putty in the digibit folder
Now I used a simple command to rename all the .ovpn files to .conf
Code:
for x in *.ovpn; do mv "$x" "${x%.ovpn}.conf"; done
Now to add password.txt line to each conf file with one command I used
Code:
sed -i -e "s/auth-user-pass/auth-user-pass password.txt/g" /digibit /*.conf
I,m not sure if you can still use password.txt with PIA if not just change the command line to auth-user-pass password.conf
Then created a password.txt in etc/openvpn and added my username and password
So now I have all the configs in /digibit I can just drag the server I want to etc/openvpn and start openvpn.
I have seen a nice plugin that you can use to change locations. You need to put your configs on hdd/vpn/(location folder name) then you can easily change VPN,s within the plugin.
I've also manged to do a simple script with my-private-network