HarmonyOS Development: Application on Shelf Part II, Application for Issued Certificate

Foreword 

this article is based on Api13 

through the first article, we got the KeyStore. p12 file and certificate request csr file, these two files are very important, must be saved, we also basically know the application packaging, signature information file is necessary, and for signature information, there is also a very important attribute, that is, profile file, mainly used to set up release or debug certificate, then how to obtain this certificate, this article focuses on the overview. 

We need to know that according to different usage scenarios, Profile is divided into three ways: Debugging Profile, publishing Profile, and internal testing. Therefore, in the following creation, everyone must create according to needs. 

Image description

To create a Profile, one thing to know is that if you only need one of your own devices to run and test the application, you don’t have to spend a lot of time, just use the local signature information directly. , which is the automatic signature configuration in the first overview; Of course, if you want to use it for multi-device debugging and official shelves, then the Profile file is required. 

According to the type, we can know at a glance that the release is used for official release to Huawei’s application market. Debugging is used for multi-device debugging by itself. Of course, it is also to be released to the test of the application store. Obviously, internal testing is to bypass the background of Huawei’s application store and download the application test performed by itself. 

Getting the Profile file is not done overnight. It needs to be obtained step by step. There is another knowledge point that everyone needs to know, that is, issuing the certificate and issuing the certificate Profile File. These are two files, and the corresponding fields are profile and certpath fields respectively.

Image description

Let’s get these two files step by step. 

The first step: Real name authentication 

to apply for issuing certificates and issuing certificate Profile files, you need to apply to the AppGallery Connect background, which is the management background of Huawei’s application store. It should be noted that your account or enterprise account must be authenticated by real name. If there is no real name authentication, please go to real name authentication first. 

Real Name authentication introduction address: 

https://developer.huawei.com/consumer/cn/doc/start/itrna-0000001076878172 

after the real name is completed, we enter the AppGallery Connect background: 

https://developer.huawei.com/consumer/cn/service/josp/agc/index.html #/ 

step 2: Create an APP ID 

if you have already created APP ID before, this step can be omitted and you can look directly at the next step. If not, you can create it according to this step. First, go to the background and find the certificate, APP ID and Profile: 

Image description

after clicking the APP ID option on the left, click New directly: 

Image description

according to their own application information can be truthfully filled in, one thing needs to be noted, that is, must be one-to-one correspondence with your project information. 

Image description

The second step is to create an application.

After we have the APP ID, we go back to the backstage homepage and select my application. Of course, if you want to put the meta-service on the shelf, we can directly select my meta-service. 

Image description

Once selected, click New Publication. 

Image description

Select the application package name created in the second step, and the application name will be automatically filled in: 

Image description

the third step, apply for the issuance of certificates 

go back to the home page and find the certificate, APP ID, and Profile: 

Image description

click the certificate item on the left to create a new certificate. It should be noted that only three official certificates are supported for one account. 

Image description

After clicking New Certificate, the certificate information will be filled in. You can create a release or debug certificate as required. 

Image description

Do you still remember the CSR file, that is, the request certificate we generated in the last article, can be selected directly. 

Image description

Through the above steps, our certificate has been created and can be viewed in the list, after this click to download, it must be properly preserved and of great use.

Image description

Step 4, apply for issuing certificate Profile file 

let’s go back to the front page and find the certificate, APP ID and Profile: 

Image description

after opening, directly select the last Profile option and click Add. 

Image description

After clicking Add, the following page will be displayed: 

Image description

we can see that in the first step of creating a Profile, you need to select the application name. Therefore, if you have already created an application, you can directly select it. If you have not created an application, please go back to the second step to create an application.

Image description

Select the certificate and directly select the release certificate applied for in the third step. After filling in the information, click the Add button in the upper right corner to view the created certificate in the list. 

Image description

Related Summary 

after generating the release Certificate Profile file, we can click to download it and keep it for later use. One thing we need to know is that an application can apply for up to 100 Profile files. 

After downloading, we can look at the Profile format. The p7b file contains the package name, digital certificate information, certificate permission list allowed to be applied for by HarmonyOS application/meta-service, and device list allowed to be debugged by application/meta-service (if the application/meta-service type is Release type, the device list is empty). When the type selected is not Release type, the option of selecting device will appear. 

Image description

For the creation of a device, you can directly select the device option. 

Image description

All right, let’s call it a day for this article. In the next one, we’ll focus on outlining how to configure signature information. 

This article tags: HarmonyOS application shelves.

Leave a Reply