From: https://developer.apple.com/ios/manage/certificates/team/howto.action
Obtaining your iOS Development Certificate
In the
‘Certificates’ section of the iOS Provisioning Portal, you can request
individual iOS Development Certificates. All iOS applications must be
signed by a valid certificate before they can be run on an Apple device.
In order to sign applications for testing purposes, Team Members need
an iOS Development Certificate.
A digital identity is an
electronic means of identification consisting of a secret "private key"
and a shared "public key". This private key allows Xcode to sign your
iOS application binary.
The digital certificates you request and
download are electronic documents that associate your digital identity
with other information, including your name, email address, or business.
An iOS Development Certificate is restricted to application development
only and is valid for a limited amount of time. The Apple Certification
Authority can also invalidate ("revoke") a certificate before it
expires.
Generating a Certificate Signing Request
Submitting a Certificate Signing Request for Approval
Approving Certificate Signing Requests
Downloading and Installing Development Certificates
Saving your Private Key and Transferring to other Systems
It is critical that you save your private key somewhere safe in the event that you need to develop on multiple computers or decide to reinstall your system OS. Without your private key, you will be unable to sign binaries in Xcode and test your application on any Apple device . When a CSR is generated, the Keychain Access application creates a private key on your login keychain. This private key is tied to your user account and cannot be reproduced if lost due to an OS reinstall. If you plan to do development and testing on multiple systems, you will need to import your private key onto all of the systems you’ll be doing work on.
- To export your private key and certificate for safe-keeping and for enabling development on multiple systems, open up the Keychain Access Application and select the ‘Keys’ category.
- Control-Click on the private key associated with your iOS Development Certificate and click ‘Export Items’ in the menu. The private key is identified by the iOS Developer: <First Name> <Last Name> public certificate that is paired with it.
- Save your key in the Personal Information Exchange (.p12) file format.
- You will be prompted to create a password which is used when you attempt to import this key on another computer.
- You can now transfer this .p12 file between systems.
Double-click on the .p12 to install it on a system. You will be prompted
for the password you entered in Step 4.