In this post, you will learn how to generate a digital certificate and a provisioning file, both required to install and run a mobile application on an iOS device. If you're to attending my Adobe MAX preconference hands-on code camp and you plan on using your iOS device, you'll need the certificate and the provisioning file before you arrive.
The instructions below are geared towards Mac OS. If you're developing on Windows or if you run into problems with the Apple Development Provisioning Assistant I recommend following the steps in Holly Schinsky's thorough guide.
1. Navigate to the Apple developer center and apply for an account. This will cost approximately $99 and may take up to two business days. The URL is http://developer.apple.com/devcenter/ios/index.action
The next step is to obtain a Development Certificate. (Again the steps below are for Mac only. If you're on Windows you'll need to use OpenSSL or something similar.)
2. To generate a Certificate Signing Request (CSR) with a public key, start by opening your Applications folder, then open the Utilities folder and launch Keychain Access.
3. Choose Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority.
4. In the Certificate Information window, enter or select the following information:
- In the User Email Address field, type your email address
- In the Common Name field, type your name
- In the Request is group, select the Saved To Disk option
5. The Certificate Assistant saves a Certificate Signing Request (CSR) file to your Desktop. I use a folder in the Flash Builder workspace named Apple with two subfolders, CSRs and Provisioning.
7. Click the Certificates link on the top left hand side.
8. Click the Development tab.
9. Click Request Certificate, and then upload the certificate request by choosing the CSR file and clicking Submit.
When the status on your certificate request is "Issued", you can move on to getting a provisioning file.
10. Click the Home link on the top left hand side to return to the iOS Provisioning Portal's main page.
12. The assistant will launch and provide an overview of the steps required to create a provisioning profile. Click Continue.
14. Specify the device you are going to use. (If you have previously set up a device, you can select it from a drop down list.)
15. You will be prompted for a certificate. The certificate you created earlier should be visible. Click Continue.
16. On the next screen, type a Profile Description (for example, MAX2011) and then click Generate.
17. This will generate a provisioning file named something like MAX2011.mobileprovision. Download it and save it under your Flash Builder workspace. For convenience, I save mine under a folder to hold all Apple iOS related assets used by multiple applications.
- Your iOS development certificate in P12 format
- Your Application ID to insert in the application descriptor XML file
- Your developer provisioning profile
If you have any problems with the steps, email me at dnickull at adobe dot com.