PrivateInternetAccess OpenVPN Automatic Login on iOS in 8 Steps or Less
I have been using Private Internet Access for almost a year, and it's been pretty useful most of the time. I have it set up on my router to protect household traffic, but it has been a pain setting it up on my phone. I wrote a post earlier about how to set up OpenVPN access for Private Internet Access without using iTunes. That method still works fine, but it can be a pain to enter login credentials for each and every connection. This method works great if you have access to iTunes and a USB cord for your iDevice. What You Need - iDevice, USB cord, Computer with iTunes, Private Internet Access (PIA) account
Don't have iTunes? Try this instead.
Full Disclosure I'm a fairly content user of Private Internet Access, but I don't work for them in any way, shape or form. I solemnly swear that the code below is safe to use, but I still recommend you do your own research to see what it all means.
1. On your iDevice, install the OpenVPN Connect app
2. Plug your iDevice into your computer using your USB cord. Make sure iTunes recognizes the device.
OPTIONAL: Lazy? Download these pre-configured files and skip to step 5. Determined? Go to step 3. (And pat yourself on the back on the way there.)
- Basic configuration files (you'll need all three of these)
- OpenVPN Profiles (take what you need)
- CA North York.ovpn
- CA Toronto.ovpn
- Hong Kong.ovpn
- UK London.ovpn
- UK Southampton.ovpn
- US California.ovpn
- US East.ovpn
- US Florida.ovpn
- US Midwest.ovpn
- US Seattle.ovpn
- US Texas.ovpn
- US West.ovpn
3. Download the default configuration files from the Private Internet Access client support area
4. For whatever servers you're going to use (CA Toronto in this example), change the "auth-user-pass" line to "auth-user-pass pass.txt". This tells the OpenVPN client that it needs to read the "pass.txt" file for your username and password.
5. Log in to your PIA Client Control Panel and note your "x" username and 10-character, generated password toward the bottom of the page. Don't use the "p" username or the password that you used to log in to your PIA Client Control Panel.
6. Using any basic text editor, create a file called "pass.txt". (Lazy? You already downloaded "pass.txt" in step 2. Just change text to your username and password.) This file has to contain exactly two pieces of information: your username (starts with "x", followed by seven numbers) and your 10-character, generated password.
8. On your iDevice, open the OpenVPN app. You'll see a bunch of profiles you can add. Click all the plus (+) signs, and choose your preferred profile (CA Toronto in the example below). Click the switch below "Disconnected" to connect. (To change profiles, click on the first line, "External certificate profile".)