Apple developer Account those things (b)

Source: Internet
Author: User

first, about the certificate

Apple uses ciphertext signature technology to verify the legality of the app, whether it's an iOS app or a Mac app that requires a corresponding signing certificate to use as a test or publish app. This is mainly about the iOS certificate, and of course, the MAC certificate is basically similar.

When developing an iOS app, we need a signing certificate ( 开发证书 ) to verify and allow us to test the app on the real machine. In addition, we also need a certificate () for verification when we publish the app to the App Store 发布证书 . So what is the signing certificate, how to get the signing certificate, listen to me slowly.

First, the certificate ( Certificate ) is used to prove whether a certain thing is established, like the winning certificate, is to prove to participate in the contest and won the voucher. Similarly, in iOS development, use a certificate to prove that you have certain permissions or abilities to do something. Code signing verification allows our operating system to determine who signed the app, and when Xcode is installed, Xcode uses your code signature verification during project compilation, which consists of an apple-certified public-private key pair, with the private key stored in your keychain (Mac local, In the System utility), the public key is contained in the certificate (certificates), the certificate is stored in the local keychain and the developer account, and the public-private key authentication authorization method is used in many places, such as the SSH protocol in git to confirm access rights in this way. In addition, there is a certificate that we can call a media certificate to ensure that our certificate (certificates) is licensed and published. As shown in the following:

When Xcode is installed, the media certificate (intermediate Certificate) has been installed in our keychain. We can use legitimate certificates to test and publish apps by using a certificate (Certificate) that is verified in the developer account (Developer accounts) and on-premises (MAC).

II. Certificate of request

Before signing the app, we need to request a signed certificate from Apple, provided you have registered for the developer program and paid for it.

1. Open Xcode and go to the upper right organizer window and select the top first tab named devices, such as:

2. Click on the menu bar editor and select Refresh from Developer Portal

3. Enter the developer account username and password and click "Log in", such as:

4. Click on the "Submit request" button when you are finished, and Xcode will request the appropriate certificate from the developer background, including the development Certificate (development) and the certificate of release (distribution). The window looks like this:

5. After the request is complete, Xcode will ask if you need to export the developer certificate and select Export. As we mentioned in the previous introduction, the private key is stored locally, the certificate (Certificate) is stored in the developer account background with the public key, the public key = Private Key pair completes the authorization for a developer and a development Mac device, so, When we create a certificate we need to back up our certificates right away, and when we switch mac for jobs, we only need to import our private key certificates (public key certificates are stored locally and in the Developer Center).

6, the export process will require you to set the password for the exported certificate, the next time you import this certificate need to enter the password, so you need to remember the password set here. The exported certificate extension is. developerprofile, and the next time you switch your Mac for development, you can import the certificate.

Import the. Developerprofile Certificate:

third, verification certificate

1. In the left Teams tab of Xcode organizer, you can see that two certificates are displayed, one is the development certificate (development), one is the publishing certificate (distribution), and if the developer certificate authentication authorization is successful, The little picture on the certificate will show the Green Hook.

2. When the developer certificate is requested, the development certificate and publishing certificate are displayed automatically in the Keychain (System utility-keychain access). When a certificate is selected, the description information at the top includes the certificate publisher and authorization information, as well as if you see a green tick stating that the certificate has been successfully installed.

3, in the Developer Backstage View Development certificate, login developer backstage to enter the Certificates tab, respectively in the development and Distribution tab to view the development certificate and publish the certificate. At this point, the certificate should be consistent with the information in Xcode.

Iv. Review and summary

In the discussion above, we introduced the signing certificate and how to request and verify the certificate. In iOS development, it basically consists of two certificates, one is the development certificate (development certificates) to verify which devices can be used to test the app and use this certificate during the development testing phase. The other is the release certificate (distribution certificates), which verifies that app reviews and releases can be submitted to the App Store. In the case of a company team account, the publishing certificate can be shared among team members with publishing privileges. The following is an official list of the type and name of the certificate, a more detailed example of the type of certificate, the name and a brief description.

PostScript: This is about the Apple Developer account certificate related to the end of the introduction, the shortcomings of the hope that you correct and add. The next article will mainly introduce the two or three things of provisioning profile. Welcome to continue your attention.

Original address: http://ryantang.me/blog/2013/09/03/apple-account-2/

Apple developer Account those things (b)

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.