Changes

From Amahi Wiki
Jump to: navigation, search
8 bytes removed ,  13:49, 8 November 2014
'''NOTE:''' [https://play.google.com/store/apps/details?id=de.blinkt.openvpn&hl=en OpenVPN for Android] works with the certificates below for ICS 4.0 or greater without rooting your device. There is no additional configuration required to the HDA or your device (Tested on HTC One X and Samsung Tab 2 also on HTC One V). For Sony Xperia ZR (and I suspect most other Android devices) the following was necessary:
# Download the following files to a known location on your Android device<br />*#* [http://dl.amahi.org/vpn/AmahiHDAClient.crt AmahiHDAClient.crt]<br />*#* [http://dl.amahi.org/vpn/AmahiHDAClient.key AmahiHDAClient.key]<br />*#* [http://dl.amahi.org/vpn/ca-cert.crt ca-cert.crt]
# Launch the OpenVPN app, Add Profile and go to the Basic configuration page<br />[[File:OpenVPNAndroid-1-AddProfile.png|180px]] [[File:OpenVPNAndroid-2-ChooseBasic.png|180px]]
# Enter your server address - the Dynamic DNS name works for me, I guess the fixed IP address would as well<br />[[File:OpenVPNAndroid-3-EnterServerAddress.png|180px]]
Then, from the terminal run
{{Code| cd /home/username/openvpn openssl pkcs12 -export -in AmahiHDAClient.crt -inkey AmahiHDAClient.key -certfile ca-cert.crt -name Amahi -out certs.p12}}
You will be asked for a export password for the certs.p12 file - enter amahi twice.
To automate this process, paste the code from [http://wiki.amahi.org/images/f/f9/Automate.script automate.script] in your favorite editor. Save it & run it with {{Code| sh <filename>}}
You should now have a certs.p12 file in your /home/username/openvpn folder, copy this certs.p12 file to the root of your sdcard on the Android phone.
12,424

edits