Saturday, June 05, 2010

WPA Enterprise networks on rooted Android 1.6

So I spent a while in DCS (Department of Computer Science) today trying to get my phone to connect to the network.

For some reason on the Cyanogen ROM I'm using at the moment (I don't know about the official 1.6 build) wireless certificates were failing to install properly. They appear to install fine, however the drop down for certificates still shows no entries when one tries to connect to a network.

The easiest solution (at least for users with root access) to this appears to be to transfer the certificates to ones SD card and then edit the file /data/misc/wifi/wpa_supplicant.conf to add a new network.
Assuming one is connecting to the wifi in DCS this looks something like this:

network={
ssid="dcs_wl"
key_mgmt=WPA-EAP
group=CCMP TKIP
eap=TLS
identity="csuxxx"
ca_cert="/sdcard/root.der"
private_key="/sdcard/csuxxx.p12"
private_key_passwd="blah123BLAH"
priority=11
}

If one tries to connect beforehand then there will already be an entry for dcs_wl that can be edited.

Voila, it now connects automatically.

From what Chris Sinjakli has said, he found connecting to the network significantly easier so it may well be that more recent ROMs don't have this problem.