Apple certificate p12 and description file creation tutorial

When uniapp framework tools such as hbuilderx or apicloud package Apple APP, p12 certificates and certificate profile files are required to compile. At present, there are few tutorials on the Internet that use Windows computers to generate p12 certificates. Official tutorials are created using Apple computers.

Here, our article will teach you how to use a windows computer to generate a p12 certificate.

First of all, if you have not registered an Apple developer account, you can refer to the following article to register an Apple developer account first:

https://blog.csdn.net/handsome0916/article/details/113779348

Then, you can follow the steps below to create the p12 certificate and profile description file

1. Log in to the Apple Developer Center, click the certificates menu, and then click the blue plus sign to start creating a cer certificate. During the process of creating a cer certificate, you need to select the certificate type. Here we need to select the ios distribution ad hoc and app store type, do not select other types.

 2. Next, it will ask us to upload a csr file. This csr file needs to be created with a mac computer. If you don’t have a mac computer, you can use Banana Cloud Editor to create it. The address of Banana Cloud:

地址:https://www.yunedit.com

 

3. Next, log in to the background of Banana Cloud Editing, create a csr file, and download the csr file to your computer after creation.

 

4. Go back to the Apple Developer Center and continue to upload the csr file, and then you can generate the cer certificate. Download the created cer certificate to your local computer.

5. Switch to Banana Cloud Editor, upload the cer file, and then use the function of generating p12 certificates.

 

So far, the process of creating a p12 certificate has ended, and then we will introduce how to create a profile description file.

1. Enter the Apple Developer Center, click the identifiers menu, and create an appId. If it has already been created, you can skip this step. It should be noted here that the value of appId should be consistent with the package name you filled in when packaging the development tool.

 2. Click profiles to start creating a description file. When creating, select the profile file of the app store type. If you want to create a real device test type, select the ad hoc type.

 3. During the creation process, it will also ask us to choose the appId and cer certificate we just created. If you have multiple appId or cer certificates, don’t choose the wrong one.

 

4. If the profile type you choose is the ad hoc type, it will ask you to fill in the udid of the test device during the creation process. It is troublesome to obtain the udid of the iPhone. You can use the tool to obtain the udid in the upper right corner of Banana Cloud to obtain the udid.

Guess you like

Origin blog.csdn.net/weixin_48914851/article/details/128826952