---
# System prepended metadata

title: Set up iOS Certificate
tags: [iOS]

---

# Set up iOS Certificate

###### tags: `iOS`

[TOC]


# CertificateSingning Request

## What is it?
Certificate request file created by Keychain Access(鑰匙圈存取), an Apple tool that manages and stores passwords and certificates; contains data referenced by Apple to request a signing certificate for iOS and Mac development.

## How to get it?

### English
1. Select Keychain Access → Certificate Assistant → Request a Certificate From a Certificate Authority. 
1. Enter the appropriate information in the fields, click Continue.
2. Name your file (or leave it as the default "CertificateSigningRequest" name), choose the save location, and click Save then Done.

### Chinese
>![](https://i.imgur.com/Et1Omdv.png)
>![](https://i.imgur.com/TaBmpZT.png)[color=lightblue]

### What you will get?
You will get a **CertificateSigning Request... Request** file. (.certSigningRequest)

# Get Apple Certificate
After obtaining your **CertificateSingning** from Keychain Access. 

## Steps to get certification
1. Go to [Apple Developer website](https://developer.apple.com/)  and log in.
2. Look for your menu and enter the **Certicates, IDs & Profiles** section.
3. Click **+** sign to add a new certificate.
4. Must select **Apple Distribution**, this one can be used to apply for testflight; and click **continue**.
5. Choose your **certSigningRequest file**; and click continue.
6. You are DONE creating your certification and remember to download it. You will get a **.cer** file.


>Step 2: **Certicates, IDs & Profiles** section: [color=lightgreen]
![](https://i.imgur.com/AHZJMJx.png)
Step 3: **Create certificate**:
![](https://i.imgur.com/3X9oDaQ.png)
Step 4: **Select Apple Distribution**:
![](https://i.imgur.com/vAKGwMv.png)
Step 5: **Select certSigningRequest file**:
![](https://i.imgur.com/y30Y80k.png)


>If you bump into **"Maximum number of certificates generated"**, then try to revoke some first. [color=red]

# Set Up xCode Account
Firstly open **xCode** and open **Preferences**.

![](https://i.imgur.com/W6aZXpV.png)

![](https://i.imgur.com/AuE19Zl.png)

![](https://i.imgur.com/ETkXmwc.png)

![](https://i.imgur.com/Br0lpWr.png)
