Nanfeng

Notes on software development, code, and curious ideas

How to Create an iOS Development Certificate

One of the first steps in iOS development is obtaining a certificate. Developers commonly refer to development and distribution certificates; this guide uses a development certificate to demonstrate the complete process.

Open the Apple Developer portal, sign in, and select Certificates:

Open Certificates

Click the + button next to Certificates:

Create a certificate

Select the certificate type appropriate for your project. This example uses an app development certificate:

Choose the certificate type

Apple now asks you to upload a certificate signing request (CSR):

CSR requirement

Create the CSR on your Mac by following the Keychain Access steps shown below:

Open the CSR assistant

Create the CSR

Return to the browser and select the CSR you just created:

Upload the CSR

Confirm the request and download the certificate:

Download the certificate

The downloaded certificate has a .cer extension:

Downloaded CER file

Double-click it to import it into Keychain Access:

Import into Keychain

If a trust warning appears, open the certificate in Keychain Access and configure it as trusted.

Create an identifier (App ID)

Click the + button under Identifiers:

Create an identifier

Choose App IDs, then continue:

Choose App IDs

Select App:

Choose App

Enter a description and a bundle ID, usually in a format such as com.company.app:

Enter the App ID

You must also choose between an explicit and wildcard App ID:

  1. Explicit App ID: identifies one specific app, such as com.company.app. It supports capabilities such as Push Notifications and App Groups, avoids conflicts with other apps, and is the normal choice for a production app.
  2. Wildcard App ID: uses * to cover several apps, such as com.company.*. It can be convenient for temporary or similar apps, but it does not support every capability and is less isolated.

Choose the Bundle ID type

Confirm the information and click Register. The new identifier will appear in the Identifiers list:

Registered identifier

Register a test device

Add a new device:

Add a test device

Verify the information and click Register:

Register the device

The device now appears in the Devices list.

Create a provisioning profile

Create a new profile:

Create a provisioning profile

Choose the profile type appropriate for your project:

Choose the profile type

Select the App ID created earlier:

Select the App ID

Select the development certificate:

Select the certificate

Select the registered test device and enter a name for the profile:

Name the profile

Confirm the information and download the resulting .mobileprovision file:

Download the provisioning profile

+