[Transfer]ios certificate (. p12) and description file (. mobileprovision) Application

Source: Internet
Author: User
Tags save file administrator password

Reproduced in: http://ask.dcloud.net.cn/article/152

There are two types of certificates and profiles for iOS:

Certificate Type Usage Scenarios
Develop (development) certificates and profiles For development testing, packaged in Hbuilder to be debugged in a real-world environment via safari
Publish (distribution) certificates and profiles Used to submit AppStore, which can be submitted to AppStore approval publication using application loader after packaging in Hbuilder

Prepare the Environment

    • Must have an Apple developer account and be added to the IOS Developer program

    • MAC OS 10.9 above system (not required if you have already applied for P12 certificate)

Sign in to iOS Dev Center

Open website iOS Dev Center
Sign in to iOS Dev Center using your Apple Developer account:

After successful login, select "Certificates, Identifiers & Profiles" on the right side of the page:

Select one of the IOS Apps fields on the certificates, Identifiers & Profiles page, such as "Certificates":

Open the IOS certificates page to see all the certificates and profiles that have been applied:

Apply for Apple app ID

(You can skip this section if you have already applied)
Select "App IDs" under "Identifiers" on the "IOS certificates" page to see all app IDs you've applied for, and click the plus sign in the upper right corner to create a new app ID:

Open the Register iOS App ID page and enter a name (such as "Hbuilderapp") in the "name" entry under the "APP ID Description" field:

Enter the app ID in the Bundle ID entry under the Explicit App ID column (using the reverse Domain name format string, such as "io.dcloud.HBuilderApp"):
Note: You need to enter this value in the AppID bar of the app Cloud packaging interface in Hbuilder

Under the App Services bar, select the service you want to use for your app (if you need to use the message push feature, select VPN Configuration & Control):

After the setup is complete, select "Continue" and pop Up the confirmation page:

After confirming, select "Submit" Submission, reconfirm you can see the app ID you just created on the "app IDs" page:

Generate a certificate Request file

Whether you are applying for a development (development) certificate or a publish (distribution) certificate, you need to use a certificate request (. certsigningrequest) file, and the certificate request file needs to use "Keychain Access" on Mac OS Tool generation.
Search for "Keychain" in "Spltlight search" and open the "Keychain Access" tool:

Open the menu "Keychain Access", "Certificate Assistant", select "Request a Certificate from a Certificate authority ...":

Open the Create Request Certificate page, enter the user email address in the page, the certificate name (Common name), and the request type (ask is) Select to save to disk (Saved):

Click "Continue" to eject the Save path:

Click "Save" to save the certificate request file, successful prompt:

The save file name is called "Certificatesigningrequest.certsigningrequest" and is used when you request a development (development) certificate and publish (Production) certificate.

Application Development (development) certificate and profile

The development (development) certificate is used in a test environment and can be installed directly on the phone (without committing to appstore), but a profile can only bind up to 100 devices (so it is not feasible to formally publish the application through such a certificate).

Application Development (development) certificate

Select "Development" under "Certificates" on the "certificates, Identifiers & Profiles" page to see all the development (development) certificates that have been applied Click the plus sign in the upper right corner to create a new certificate:

Open the "Add iOS Certificate" page and select "iOS App development" under the "Development" tab:

Select "Continue" at the bottom of the page:

Open the Confirm Certificate Request page and click "Continue" to continue:

Open the Certificate Generation page, click "Choose file ..." Select the "certificatesigningrequest.certsigningrequest" file generated in the "Generate Certificate Request File" section, click "Generate" The CER certificate was generated successfully:

After the certificate is generated successfully, open the certificate download page and select "Download" to download and save the Certificate (ios_development.cer):

Double-click the save to local Ios_development.cer file to import to "Keychain Access":

After the import is successful, you can display it in the list of certificates:

Select the imported certificate, right-select "Export" Developer "...":

Open the Certificate Save page, enter the file name, select the path and click Save:

Open the Set Certificate Password page, enter the password and confirm the password and click "OK":

Open the Access Keychain Access Password page, enter the Mac OS Administrator password, click "Allow", and save the Development (development) certificate (such as "HBUILDERCERT.P12").

Add a debug device

The development profile must be bound to the device, so add the debugged device before you request a development profile.
(You can skip this section if you have already added a device)
Select "All" under "Devices" on the "certificates, Identifiers & Profiles" page to see all the device information you have added, and click the plus sign in the upper right corner to add a new device:

Open the registering a New device or multiple Devices page, enter the device name and Udid:


Connect the device to your computer, start itunes, click the secondary area to toggle the Udid of the display device, right-select copy

After the input is complete, click "Continue" to continue, confirm the input information:

Click "Register" to complete the Add.

Application development (development) profile

Select "Profiles" under "Provisioning development" on the "certificates, Identifiers & Profiles" page to see all development (development) profiles that have been applied , click the plus sign in the upper right corner to create a new profile:

Open the "Add iOS Provisioning Profile" page and select "iOS App development" under the "Development" tab:

Click the "Continue" button, open the "app id" Selection page, select the "app ID" you want to use (such as "IO.DCLOUD.HBUILDAPP" created earlier), click "Continue":

Open the Select Certificates page and select the development certificate that you created earlier:

Click "Continue" to open the Select Debug Device page and select the Device for debugging installation (up to 100 too devices):

Click "Continue" and enter the name of the profile (e.g. "Hbuilderprofile"):

Click "Generage" to generate the description file successfully:

Click "Download" to download and save the development profile (e.g. hbuilderprofile.mobileprovision).

Application release (distribution) certificate and profile

The Publish (Production) certificate is used in the official publishing environment for submission to the AppStore audit release.

Application Release (Production) certificate

On the "certificates, Identifiers & Profiles" page "certificates" Production "to see all published (Production) certificates that have been applied, click the plus sign in the upper right corner to create a new certificate:

Open the "Add iOS Certificate" page and select "App Store and Ad Hoc" under the "Production" column:

Select "Continue" at the bottom of the page:

Open the Confirm Certificate Request page and click "Continue" to continue:

Open the Certificate Generation page, first click "Choose file ..." Select the "certificatesigningrequest.certsigningrequest" file generated in the "Generate Certificate Request File" section, and then click "Generate" Generate CER Certificate:

After the certificate is generated successfully, open the certificate download page and select "Download" to download and save the Certificate (ios_production.cer):

Double-click the save to local Ios_production.cer file to import to "Keychain Access":

After the import is successful, you can display it in the list of certificates:

Select the imported certificate, right-select "Export" Developer "...":

Open the Certificate Save page, enter the file name, select the path and click Save:

Open the Set Certificate Password page, enter the password and confirm the password and click "OK":

Open the Access Keychain Access Password page, enter the Mac OS Administrator password, click "Allow", and save the Development (Production) certificate (such as "HBUILDERCERT.P12").

Application release (distribution) profile

Select "Profiles" under "Provisioning distribution" on the "certificates, Identifiers & Profiles" page to see all the publications that have been applied (distribution) Description file, click the plus sign in the upper right corner to create a new profile:

Open the "Add iOS Provisioning Profile" page and select "iOS App development" under the "Development" tab:

Click the "Continue" button, open the "app id" Selection page, select the "app ID" you want to use (such as "IO.DCLOUD.HBUILDAPP" created earlier), click "Continue":

Open the Select Certificates page and select the publishing certificate that you created earlier:

Click "Continue" and enter the name of the profile (e.g. "hbuilderprofiledistribution"):

Click "Generage" to generate the description file successfully:

Click "Download" to download and save the development profile (e.g. hbuilderprofiledistribution.mobileprovision).

[Transfer]ios certificate (. p12) and description file (. mobileprovision) Application

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.