|author||Kevin Cernekee <firstname.lastname@example.org>||Sat May 28 16:11:42 2016|
|committer||Kevin Cernekee <email@example.com>||Sat May 28 17:21:47 2016|
Initial commit Change-Id: I70d362eed8ae07739b0523b28eb1c7e41e710899 Signed-off-by: Kevin Cernekee <firstname.lastname@example.org>
This project lets you set up OpenVPN profiles for privateinternetaccess.com in Chrome OS with minimal fuss. It does not require enabling developer mode.
Short link to this page: http://tinyurl.com/cros-pia
Download the “prebuilt” cros-pia.zip to your Chromebook.
Click “Show in folder,” or open the File Manager with Alt-Shift-M. Then double-click on the zip file to mount it.
chrome://net-internals/#chromeos in the location bar, hit enter, and click “Choose File” under “Import ONC File.”
Double-click ALL.onc (to import configurations for all servers), or import individual VPN configuration(s) one at a time.
Click on the Tray → VPN → one of the PIA configurations.
Fill in Username and Password using your normal PIA (not L2TP) credentials. Always leave OTP blank.
If import failed, scroll down to the end of
file:///var/log/ui/ui.LATEST and look for any errors. (The net-internals UI doesn't provide a whole lot of feedback, unfortunately.)
If your connection fails, do the same for
To delete VPN configurations:
Select Private Network → Preferred networks.
Click the “X” icon on the right side of each configuration you want to delete.
./build_all.sh will download the default OpenVPN configuration files from the official PIA site, convert them into ONC format, and create
cros-pia.zip in the current directory.
To embed your PIA credentials into the generated
cros-pia.zip so that you never need to manually enter them on the Chromebook, use:
./build_all.sh -u "USERNAME" -p "PASSWORD"
To manually convert a single configuration, use:
./ovpn_to_onc.py "US California.ovpn"
ONC does not currently support the certificate revocation list (CRL) bundled with the PIA .ovpn files.
The converter only handles the fields that are relevant for PIA; it is not a general purpose OVPN→ONC converter.
PIA's official site does not currently offer ONC files for download, but if enough Chromebook users bug them about it, maybe they will reconsider.
The file format is defined in the ONC specification.
(To get a copy in .html format, click the “txt” link at the bottom and run
base64 -d on it. This is a workaround for a gitiles limitation.)
The original OpenVPN ONC walkthrough document can be found here.