iPhone Configuration Utility Wi-Fi Passwords

My last post was really more of a lead in to this one. As I was putzing around with the configuration utility I was surprised that the Wi-Fi tab doesn’t allow you to actually enter a password for a WEP or WPA/WPA2 network, which is arguably the most useful part of being able to provision a profile for wireless settings.

What I found was that although there is no password field in the GUI you can still include it with the profile by manually editing the file. The profile file that gets created is nothing more than an XML file so open it up with your favorite editor (I used Wordpad because Notepad had a tough time with the line breaks). Now somewhere between the <dict> and </dict> tags that contain the PayloadContent you need to add two more nodes:

<key>Password</key>
<string>(your wireless key)</string>

I added mine directly below the SSID_STR key and string for the wireless network name. If you have multiple Wi-Fi networks you’ll see a separate <dict></dict> structure for each so just make sure you put the passwords in the right spot. Now just save the file and either email or post it on a website for users to download. All they’ll need to is click install to have the Wi-Fi network automatically added to their phone.

Peanut Gallery

  1. This is exactly what I was looking for! Great work.

     
  2. Going to try this now, this is a super post mate! big up!

     
  3. hi Tom,

    I am having a little prob with the file :( . i saved it to my pc then opened it With wordpa edited the required keys then saved them. I then sent it to the iphone via mail. when i open the file it says profile not valid ” the format of the profile is not valid@ . please help.

    Cheers

     
  4. Nic – I had the same issue you describe an turns out I need to convert the special characters into ‘XML Entities’ 0 for example instead of & you need to use ‘&amp’ if editing the config file in a conventional text editor. Or, you could use a proper XML editor to modify the file. See http://www.macosxhints.com/article.php?story=20081105145459612 for more info.

     

Speak Up