How to generate ios certificate in windows

Use hbuilderx's uniapp framework to develop ios applications. During the testing phase and release phase, ios certificates are required for packaging. The cloud packaging interface provides a tutorial for generating ios certificates, but the tutorial is very disappointing. It can only use a mac computer to generate ios. Certificate. If you don't have a Mac computer, you can't follow the tutorials on the hbuilderx official website.

If you have not registered an Apple developer account, you must first register as an Apple developer. Tutorial: https://blog.csdn.net/handsome0916/article/details/130267123

Here, Windows computers can follow my tutorial to generate iOS certificates.

First of all, the first step to generate a CSR file requires a Mac computer. Here we use Banana Cloud Editor instead of a Mac computer. First, go to Banana Cloud Editor to generate the CSR file:

https://www.yunedit.com/ioscert

Enter Banana Cloud Editor, as shown below, generate a csr file, and download this csr file to your hard drive.

Then log in to the Apple Developer Center, find the Certificates module, and start creating the cer certificate, as shown below. Click the small blue plus sign next to it to start creating the cer certificate. In the first step of creation, it will ask you to select the type of certificate. Here we always choose the ios distribution ad hoc and app store type. Don’t ask anything, this type is used for packaging. Don't choose any dev or apple type.

After selecting the type, the next step will ask us to upload a csr file, as shown in the figure:

Here we upload the csr file we just generated in Banana Cloud to generate the cer file. Then download the generated cer certificate to your computer locally.

Then, return to Banana Cloud Editor, upload the cer certificate you just generated to Banana Cloud Editor, and then you can use the function of generating p12 files to generate a p12 certificate.

The p12 certificate has been generated now.

Then let’s talk about how to generate the certificate profile file:

1. Log in to the Apple Developer Center, click Profiles, and start generating profiles.

For the profile type, we choose app store (listing type) or ad hoc type (ad hoc type is the real device testing type), click Next, it asks us to choose an appId, as shown below.

If you are creating a profile for the first time and have not created an appId before, then you need to go to the ideantifiers menu and create an appId first. When creating the appId, the appId must be consistent with the package name we filled in when packaging.

Return to the previous step, if the appId has been created, just select the appId:

Then during the process, it will also ask us to choose the cer certificate, as shown below. If you have multiple certificates, please don’t choose the wrong one:


 

If you choose an app store type profile file, it has been generated by now.

But if you choose an ad hoc type profile file, it will also require us to provide the udid of the test device during the process. It is troublesome to obtain the udid of the test device. The more convenient method is to use the tool on the top of Banana Cloud Editor to obtain the udid. udid

At this point, we have finished generating the p12 certificate and certificate profile files.

Guess you like

Origin blog.csdn.net/handsome0916/article/details/132601779
Recommended