We'll be working with the following dialog box in the next few screenshots. When first presented it looks like this:
[[File:Vpn-11.png|center|The VPN Connection profile dialog as it first appears]]
Give your VPN a '''Connection Name'''. Being Mr. Unoriginality, I chose “hda,” but if you're the creative type, knock yourself out. Now let's change the Authentication Type. We'll choose “'''Password with Certificates (TLS)''',” as shown below:
[[File:Vpn-12.png|center|Choosing an Authentication Type]]
Your Amahi name forms the first part of your Gateway name: '''[Amahiname].yourhda.com'''. Although it's not my real gateway name, for the purposes of this tutorial, I have given a tip of the hat to Isaac Asimov and his Foundation Trilogy. Now provide your hda username and user password. If there's more than one computer user at home, there are probably more than one of these. (This is NOT your overall Amahi account name and password.) I've used HariSeldon in this example and, by checking “Display Passwords” below, I've demonstrated that you don't have to “type in dark” when it comes to your password. (Five bonus points are awarded if you know who R. Dos Venabili is, and TEN extra points are awarded if you know what the abbreviation “R.” stands for.)
[[File:Vpn-13.png|center|Adding the Gateway, Username, and Password]]
Now we're going to make use of those .KEY and .CRT files you downloaded earlier. Using the example below (and assuming you know how to use the “file” button on each line to navigate to the location of the file needed), you fill in “User Certificate” and “CA Certificate” and “Private Key” as shown below:
[[File:Vpn-14.png|center|Adding the Gateway, Username, and Password]]
Now we need to change one or two more settings by clicking on the “'''Advanced'''” key, which will bring up the following dialog box. Check (or “tick” as my English friends say) the boxes which say “'''Use custom gateway port:'''” (leave this at the default of '''1194''') and “'''Use LZO data compression.'''” (No, I don't have a clue what LZO is; just check the box!) 1194 may be the default even if you don't tick “Use custom gateway port,” but I'm superstitious.
[[File:Vpn-15.png|center|OpenVPN Advanced Options dialog box]]
A click on “'''OK'''” will return us to the main Edit dialog box...