Look Ma, I made an iPhone Enterprise Application!
By David Christensen · August 3, 2009
One of our clients recently came to us for help with implementing an iPhone Enterprise application. This particular application involved deploying specific signed mail configurations for customers with iPhones. This was primarily a server-side application, although the front-end interface was created using the DashCode development tools from Apple. Although this was a web application, the DashCode integration enabled us to create the interface in a way that it appeared to be a native application on the iPhone. Client-side validation was performed in a way that for all intents and purposes appeared native.
The backend was a traditional CGI script which generated the .mobileconfig configuration payloads to easily integrate the customer's mail server information into the iPhone's Mail application. The backend was written to support any number of accounts deployed per customer, and the resulting payload was signed and verified by the customer's PEM key.
We integrated openssl's pkcs12 support to transparently sign the generated dynamic mobileconfig. This was keyed off of the client's deployment key, so all of the generated keys were automatically indicated as trusted and registered by the client when installed on the iPhone.