# 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
>
>[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]

Step 3: **Create certificate**:

Step 4: **Select Apple Distribution**:

Step 5: **Select certSigningRequest file**:

>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**.



