Important: This document has been replaced by App Distribution Guide. App Distribution Guide offers step-by-step instructions for configuring, testing, and submitting your app for approval. This new document describes how to use Xcode and other Apple developer tools to create and configure your project, request signing certificates, create provisioning profiles, configure special App Store technologies, test your app on devices, create your app record in iTunes Connect, and submit your app for approval to Apple. If you have a company Apple Developer Program membership, you’ll also learn how to manage your team’s certificates and provisioning assets.
Managing a Distribution Certificate
Before an app can be distributed, your team must have a valid distribution certificate linked to a distribution provisioning profile. Only team admins can create or install a distribution certificate. Each team can have only one active distribution certificate. The team admin can either use Xcode to create a distribution certificate or manually request and download one from iOS Provisioning Portal.
A team’s distribution certificate allows a developer to build an app for distribution. If your team wants to use another Mac to create a distribution build, you need to transfer a copy of the distribution certificate as described in, Safeguarding and Transferring Your Signing and Provisioning Assets.
Using Xcode to Create a Distribution Certificate
You should use Xcode to create your distribution certificate. Xcode creates, downloads, and installs a development certificate, distribution certificate, and the iOS Team Provisioning Profile for you. Xcode can also restore missing certificates and renew expired certificates.
In Xcode, open the Devices organizer.
Select Provisioning Profiles in the Library section.
Click the Refresh button at the bottom of the window..
Enter your user name and password and click Log in.
After you log in to your account, a prompt appears, asking whether Xcode should request your distribution certificate.
Click Submit Request.
If a prompt appears, at the end of the refresh process, asking if you want to export your developer profile, click Export.
Your request for a distribution certificate is automatically approved. The distribution certificate is added to your keychain and appears in Xcode. You can view, download, or revoke the distribution certificate in the iOS Provisioning Portal.
Manually Managing a Distribution Certificate
Although it is easier to use Xcode to create a distribution certificate, you can manually create a distribution certificate. If you do not have access to Xcode, generate a Certificate Signing Request (CSR) with Keychain Access, submit your request, and download the certificate from the iOS Provisioning Portal.
Generating a Certificate Signing Request with Keychain Access
Open Keychain Access on your Mac (located in
Open Preferences and click Certificates. Make sure both Online Certificate Status Protocol and Certificate Revocation List are set to Off.
Choose Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority.
Enter your user email address and common name. Use the same address and name as you used to register in the iOS Developer Program. No CA Email Address is required.
Select the options “Saved to disk” and “Let me specify key pair information” and click Continue.
Specify a filename and click Save.
For the Key Size choose 2048 bits and for Algorithm choose RSA. Click Continue and the Certificate Assistant creates a CSR and saves the file to your specified location.
Creating a CSR generates a public and private key pair. The private key is stored in the login keychain.
Submitting a Certificate Signing Request for Approval
Navigate to the Certificates area of the iOS Provisioning Portal and click the Distribution tab. Click Request Certificate.
Click Choose File, choose your CSR file, and click Submit.
After the CSR is approved, the certificate is listed under Current Distribution Certificate. If it doesn’t appear automatically, you may need to refresh the page.
Downloading and Installing Distribution Certificates
Navigate to the Certificates area of the iOS Provisioning Portal and click the Distribution tab. Click Download next to the certificate.
In the Finder, double-click the downloaded
.cerfile to open Keychain Access and install your certificate in your default keychain (usually the login keychain).
Distribution Certificates Must Be Renewed Periodically
A distribution certificate is valid for one year from date of issue. After it expires, you won’t be able sign and install apps on your devices although this will not affect any existing apps in the App Store.
To continue distribution, navigate to the Devices organizer in Xcode. Select the expired profile and click Renew Profile in the red bar at the top. This will renew your expired certificate and add it to the provisioning profile. After you get a new distribution certificate, you can submit new apps or app updates to the App Store.
If you are enrolled in the iOS Developer Enterprise Program, revoking your distribution certificate will make your app fail on any installed devices. Only revoke your certificate if your app or private key have been compromised. You can create a second distribution certificate six months before your existing certificate expires. The overlapping certificate allows you to continue to build and distribute your app once your first certificate expires.