iOS Developer Account Application Guide

Source: Internet
Author: User
Tags openssl x509



Application process for iOS developers
If you're a development team, it's a good idea to ask your colleague if you've got a developer license before you're ready to pay for an iOS developer authorization, as a development license can authorize up to 111 devices to develop tests within a year. If you don't have a license to borrow, or if you're going to end up publishing your app in your own name in the itunes store, prepare an international credit card and be ready to pay $99 for an iOS developer license.



Click on the link below to enter Apple Developer Center
http://developer.apple.com/
Click iOS Dev Center on the left-hand side of the page to enter the iOS dev centre









Click the Register button at the top right of the page









Then click the Get Started button to enter the application process









Apple ID
The first step in the application process is to select an Apple ID, and if you already have an Apple ID and have purchased an app from Apple's store, you can choose "Use an existing Apple ID", otherwise you'll need to click "Create an Apple ID" To create an account. Finally click on the Continue button.



Personal profile
Here is a form, divided into three sections, to create an Apple ID (if previously selected is created), security information (information), profile (Personal information), Note that all options are required! , complete and continue to the next page.



Professional profile
This page is a developer's career information. Note In the first item select iOS, if you're a student, check the check this box after the second question if you are currently enrolled in a college or university. Continue after all selections have been completed.



Legal Agreement
This page is an agreement, read carefully and check the box below to continue.



Email Verification
Wait for the email to be received in the email that you just registered, and then fill in the input box from an Apple Developer support letter and click Continue.









When you see this page, you have completed the developer registration process and will receive a confirmation e-mail.



Can you develop and test your application? No, because you just logged in and want to test your development on your device, and now you don't have that qualification.
Click on a continuation button just below the registration Success page, then click "Join the Developer Programs" to the right of the page that appears next to this page.
http://developer.apple.com/programs/start/standard/









Judging from the flowchart, we need at least three more steps to apply. Are you ready? Click Continue.



Apple ID
Confirm your Apple ID again, as we have just registered successfully, so here we look only at the existing Apple Developer section on the right. Here are three options, if you are applying for the first time and are not students, choose the first item; If you are a student for the first time, choose the second item; If you have already applied for this authorization but want to add some ancillary features to your authorized account, select the third item. Choose and Continue.



The discovery process has changed and has entered the process of applying for payment
Enter Account Info
The first thing you need to choose is whether you are an individual or a company, and if it is a company application you need to provide a legal name, legal name, and some business document. Only individual applications are introduced here.
After clicking Individual, you need to log in with your newly registered account and enter the stage of filling in your bank account.
Please note that there are two IMPORTANT and two exactly, the name of the account must be the same as on the credit card, and the billing address must be the same as the next Apple Online The mailing address used to pay for the store is identical.












Select Program
The next page is the choice of application platform, iOS and Mac are $99 a year, Safari plug-in development is free. We select iOS and then continue.



Review & Submit.
On this page check that your fill in the information is correct, if correct, click Continue.



Agree to License
After carefully reading the developer License Agreement, click on the box below and continue.



Purchase Program
If you chose China in the previous form, you will see a big yellow exclamation point and tell us that the Apple Online store is not good for our country.
No matter, Apple also offers another way to pay, you can download a PDF in the middle of the left side of the page, fill in your credit card information, and then fax it to the phone number specified on the page, and you can wait to receive the email.



The Apple website said it would take 3-5 business days, I waited for almost two weeks, first the credit card was taken out of $99, then received a receipt email, and then received an activation account confirmation email, finally completed the developer authorized application, become a legitimate iOS developer.



I described how to apply to become a legitimate iOS developer, this article details how to use the authorization file (. mobileprovision) and the signing certificate file (. cer)



Upon successful payment, you will receive a confirmation email from Apple Developer suport, such as.









There is a login button in the email and you can click on it to access the Apple Developer Member Center. Click on the iOS Provisioning Portal in the diagram to enter the developer licensing settings system.









In the Settings screen, you can choose to run the wizard by tapping the assistant at the bottom of the page.









or directly from the left side of the navigation to set, I will focus on this article on how to set up the developer authorization and certificate by navigation. But before I do, let me briefly introduce some of the basics of Apple developer empowerment.



Apple has strict restrictions on the use of its devices, and any application must be downloaded and installed from the itunes Store, downloaded directly from the device, or synced to the device from the computer via itunes. So no cracked device is no way to directly install the IPA file. But Apple also provides a developer-oriented mechanism that allows them to test and develop an IPA file on a specified device, at the core of which is developer empowerment. The application process I described earlier was to obtain a developer authorization to install the IPA file on the device.



Using developer authorization is a complete and relatively reasonable process that can be divided into the following phases:


    1. Authorized devices that bind developer authorization to specified devices so that they are free to install the IPA published by the developer.
    2. Generates an authorization file. mobileprovision, this file will be packaged into the IPA to enable the binding of the device to the authorized Development Account.
    3. Generate the certificate file. P12, this file will also be packaged into the IPA to implement the signature and authentication of the application publisher.


In addition, the developer licensing system also provides two different channels for development (development) and release (distribution). When developing the test, the device must be bound and the IPA can be installed separately on the device, and no binding device is required when publishing. so developing and publishing requires a different. Mobileprovision with a. cer file.



To go back to the developer authorization system, let me introduce how to use authorization and certificates in the development phase.





Authorized Equipment





Click on the device on the left navigation, go to the Authorized Devices page, click the Add Device button on the top right to add one.









When adding a device, you can specify the name of the device (write it casually), and the UID of the device (Unique Identifier). Each Apple device has a unique identification code, the method to obtain this code is very simple, connect your device to the computer, and then in itunes to find your device information (such as), click on the image of the red box location, the device UID will be displayed. You can copy the UID to the Clipboard directly via CTRL + C (Apple is COMMAND + C).








Add App ID





Click the App IDs button on the left navigation to go to the Application ID configuration page and click on the new App ID button on the right side of the page to add an app. This ID corresponds to the application that will be developed and tested. For example, add a name for a single app in description (no special characters are supported), and then fill in the bottom bundle Seed ID with a string containing the domain format (such as Com.jamesli.appname). Bundle Seed ID is a collection of developer and application information in the format (com.[developer].[ Apply]), which can be specified as a single app or as a full app. In the case of a single application, it is recommended that the description just filled in with the last item of the bundle seed ID (such as angrypigs and Com.jamesli.angrypigs), and if it is all applied, you can use the bundle seed ID: Com.jamesli.








Apply for developer certificate





The process of requesting a certificate is different on Mac and win. I introduce separately:


Mac


Open Keychain Access manually in Applications->utilities. From the top menu bar keychain Access, Certificate Assistant, Request a Certificate from Certificate authority. After filling in your information in the new pop-up window, select Save to disk and a certificatesigningrequest file will be saved on the desktop. such as








Windows


Applying for an Apple certificate under Windows is a very painful thing, and I'll cover the following in more detail:


    1. First you need to download OpenSSL at the link below.

      Http://www.slproweb.com/products/win32openssl.html
      For example, you need to download Visual C + + Redistributables and Win32 OpenSSL v1.0.0d Light







    1. After downloading the installation, there is a Openssl-win32 installation directory under the C drive.







    1. Open the command line as an administrator to enter the Openssl-win32/bin folder, If you are not an administrator, you need to first type the following command on the command line :




set RANDFILE=.rnd





Type the following command to generate a private key:





openssl genrsa -out mykey.key 2048





Then type the following command, request a certsigningrequest file, Note that EmailAddress is behind your mailbox, CN is followed by your name, C is behind the country





openssl req -new -key mykey.key -out CertificateSigningRequest.certSigningRequest  -subj "/[email protected], CN=Common Name, C=CN"





This generates a certificatesigningrequest.certsigningrequest file below the Openssl-win32/bin, noting that any error prompts are not ignored, or even if a file is generated, it may not be available.








This process please do not use Chrome browser


To return to the certificate page of the developer authorization system, click Request Certificate on the right of the page to apply for a certificate, then click the button at the bottom of the page to upload the generated certsigningrequest file, thus completing the application process for the certificate. After the successful application, the Certificate page has a certificate, refresh a few pages after the status of the certificate becomes issued, click the download button can download a CER file.









Next is the process of generating a p12 file from a CER file. Because the Flash publishing iOS app requires the certificate file format to be p12. This process is also different on Mac and Windows.


Mac


Click on the downloaded. cer file, the file will automatically open in Keychain access, you can right click on the key to export a P12 file, such as:








Windows


Generating p12 under Windows is still a bit of a hassle. First use the administrator to open the command line into the Openssl-win32/bin folder, if not the administrator, you also need to run the following command:





set RANDFILE=.rnd





For ease of operation, copy the downloaded CER file to the Bin folder and run the following command line to generate a PEM file





openssl x509 -in developer_identity.cer -inform DER -out developer_identity.pem -outform PEM





Then run the following command to generate a P12 file:





openssl pkcs12 -export -inkey mykey.key -in developer_identity.pem -out iphone_dev.p12





After you have entered the password two times, you will have a IPHONE_DEV.P12 file under the Bin folder.





Using developer authorization





As we mentioned above, if you want to publish an IPA that can be installed separately on the specified device, you must use the developer authorization file. Mobileprovision. This file can be obtained from the developer authorization system.



Click on the left navigation provisioning to enter the authorization page and click on the new Profile button on the right to create an authorization file.









Fill in the name in the Create page, select the created certificate, and specify the device (you can choose multiple), you can generate an authorized account after submission. And you can download a mobileprovision file to local.



Now we have two important files for the Flash release iOS app,. Mobileprovision and. P12, return to Flash, and fill in these two files (for example) in the Deployment tab of the Publish settings. This will allow you to develop an iOS project in a specific device!









iOS Developer Account Application Guide


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.