Various certificates in IOS development

Source: Internet
Author: User

Public and private keys

Reprinted from: http://www.samirchen.com/ios-certificates/

Let's briefly introduce the public and private keys. There are two common types of cryptographic algorithms: symmetric cryptographic algorithms (symmetric cryptographic algorithm) and asymmetric encryption algorithms (asymmetric cryptographic algorithm).

For symmetric encryption algorithms, there is usually only one secret key. By encrypting a piece of data with this key, the person with the secret key can use it to decrypt the data.

For an asymmetric cryptographic algorithm, there are typically two keys: public and private. For example, if you encrypt a piece of data through the private key, the person who receives the encrypted data can decrypt the data through the public key corresponding to the private key. At this point he can confirm that this data is from you (at least you encrypt). This private key is equivalent to a "signature" (you add the secret, you sign the word). And this is the principle behind code signing in iOS.

Certificatesintermediate Certificate

This certificate is called Worldwide Developer Relations Certificate Authority , through this link can be downloaded: https://developer.apple.com/certificationauthority/AppleWWDRCA.cer, the general download down the file name is: AppleWWDRCA.cer .

To make sure you can use other IOS development or publish certificates, you need to download this certificate and double click on it to be stored on your computer Keychain Access . This certificate can be thought of as something similar to a root certificate that is used to determine that the various certificates that your IOS develops or publishes are associated with Apple's developers, rather than being generated elsewhere. Typically, this certificate is automatically installed by Xcode.

IOS App Certificates

The certificates here are generally of a .cer type, divided into Development and Distribution used. Typically made in Xcode:

Of course, it can be made manually. On Apple's certificates, Identifier & Profiles website Follow the prompts step by step:

To manually generate a Certificate, you need a Certificate Signing Request (CSR) file from your Mac. To create a CSRs file, follow the instructions below to create one using Keychain Access. Create a CSR file. In the Applications folder on your MAC, open the Utilities folder and launch Keychain Access.

Within the Keychain access drop down menu, select Keychain access > Certificate Assistant > Request a Certificate fr Om a Certificate authority.

    • In the Certificate Information window, enter the following information:
      • In the User email address field, enter your email address.
      • In the Common name field, create a name for your private key (e.g., John Doe Dev key).
      • The CA Email Address field should is left empty.
      • In the ' Request is ' group, select the ' Saved to disk ' option.
    • Click Continue within Keychain Access to complete the CSR generating process.

The general step is to use  keychain Access   Generate a  certificate Signing Request file, which will create a pair of public/private keys locally, follow the prompts to upload the file, Apple will verify the information after receiving this file, and then give you to create an authentication file for you to download , this file is  .cer   format. At this time you double click on this .cer   file, then you can     opens in  certificates   Options Bar to see that it has a private key, You can also see the corresponding private key and public key in the  keys   options Bar.

But if you delete the private key and the public key, and then double-click the .cer file, you will find that it is Keychain Access open in, and the certificate in the Certificates options Bar has no private key. On other computers to download the .cer file is the same reason, there will be no corresponding private key, it is not available. What about that? You can export the private key certificate to another computer, double-click to open it, the private key certificate is generally .p12 in the format.

APNs certificates

Here the certificate is generally also the .cer type of, to be produced, according to Apple certificates, Identifier & Profiles on the website prompts step by step, follow the previous section is the same.

For Certificates this piece, it is important to note that the private key certificate (. p12) must be saved, so that when you change the computer development or multi-person development, only need to download the .cer file again, and then double-click Import .p12 .

Identifiersapp ID

Not much to say, is an App corresponding to an ID, usually is the name of the Com.company-name.app-name.

Devices

Add the UDID of the test device here.

Provisioning Profiles

Put the front things together:

    • Certificates (Developer Certification)
    • APP ID
    • Device UDID

It is Provisioning Profile .

Provisioning Profilewill be imported to the device via Xcode or ITunes, or packaged into one of the .ipa installation package files.

More information can be found in: certificate-related documents

Various certificates in IOS development

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.