iPhone Game Development - Chris Craft [13]
Figure 1.11
When specifying your certificate information for your certificate request, make sure that the e-mail address you enter matches the e-mail address that you used when you registered as an iPhone Developer.
Using the iTunes Developer Program Portal to generate your Development Certificate
Follow these steps to generate and install your Development Certificate:
1. Log in to the iPhone Developer Program Portal and choose Certificates⇒Development⇒Add Certificate.
2. In the Open File dialog box, click Choose file and select the CSR you created using Keychain Access.
3. After submission, a Team Administrator will need to click Approve to approve the certificate request if you are using a Company account. If you are the Team Administrator, it is your job to click Approve.
Figure 1.12
When asked to specify key pair information, make sure you choose 2048 bits for the Key Size and RSA for the Algorithm.
4. After approval, the status of the certificate changes to Pending Issuance; if successful, it then changes to Issued. After the status has changed to Issued, click the Download button next to the certificate name and download your iPhone Development Certificate to your local machine.
5. On the same Web page, you will see the following link near the bottom of the grid: If you do not have the WWDR intermediate certificate installed, click here to download now. Click the link to download the WWDR certificate.
6. On your local machine, double-click the WWDR intermediate certificate. The Keychain Access application will launch and install the certificate.
7. Double-click the iPhone Development Certificate file that you downloaded in Step 4 and install it the same way.
Exporting your private key
It is important that you save your private key in case you need to develop on multiple computers or you need to reinstall your OS. If you neglect to do this, you will not be able to sign your binaries in Xcode and test your applications. The Keychain Access application creates a private key for you on your login keychain. This key is tied to your user account and cannot be reproduced. You will need to import this private key onto all systems that you develop and test on. If you are using a Company account, individual team members will go through this process independently and create a personal Development Certificate for themselves. It is not necessary to copy the private key to development computers for other team members.
To export your private key and certificate, follow these steps:
1. Launch the application Keychain Access and choose the category Keys.
2. Ctrl+click the private key that is paired with your iPhone Development Certificate you created earlier. Click on Export 3. Save the file in a secure location using the Personal Information Exchange (.p12) file format. 4. Choose a password to secure the .p12 file with. 5. Now you can share your private key as long as you have this file and the password you created. To install the file, just copy it to another machine and double-click it. Keychain Access launches and prompts you for the password. Note Your private key is never sent to Apple. Private keys can only be found in the keychain on the machine that generated the CSR. It's important that you export your private key for safekeeping and so you can use it on other machines. Register iPhone and iPod touch Device IDs Apple wants to know which devices you are using to develop on before you install applications on them for testing. Every iPhone and iPod touch has a Unique Device ID (UDID) that uniquely identifies that device. Registering your device is as simple as inputting your Device IDs on the iPhone Developer Program Portal site. Here are the steps to do this: 1. Locate and record your Device ID. The easiest way to do this is to plug in your device and open Xcode. From the Xcode menu, choose Window⇒Organizer. You will see your Device ID immediately to the right of the label Identifier (Figure 1.13). Figure 1.13