Apple application Windows request a general certificate and a push certificate Hbuilder

Source: Internet
Author: User

Recently, HTML5 was developed using Hbuilder because HTML5 can be placed on an Android machine or on an iOS machine, so it's interesting to develop a small application that

But here's the problem:

Figure 1

: When iOS is packaged, a certificate password and provision file are required.

Android packaging also requires a certificate file,

(1) First talk about the Android packaging process;

Android Publishing

For Android platforms, you can choose to use the public certificate generated by Dcloud or the certificate you generate, which does not affect the release of the installation package, except that the developer and enterprise information in the certificate is different.

Generate an Android signing certificate

( ignoring this operation with the dcloud Public certificate) ensures that the JRE is installed on the computer, and we will use the JRE's own tool Keytool to create and manage digital certificates. Use the following command to generate the certificate:


ANDROID1 Chart

    • keystoreHelloworld.keystore represents the generated certificate, which can be added to the path (by default in the user's home directory);



    • aliasHelloWorld indicates that the certificate alias is HelloWorld;



    • keyalgRSA represents the RSA algorithm used;



    • validity10000 indicates that the certificate is valid for 10,000 days.

Configuring packaging information



    • Using Dcloud public certificates
    • Android2 Chart

      App Package name : Android App package name, using reverse domain style string, such as "Com.domainname.appname".



    • Use your own certificate
    • ANDROID3 Chart

      App Package name : Android App package name, recommended to use reverse domain style string, such as "Com.domainname.appname";
      Certificate Aliases : Certificate aliases set using the-alias parameter when generating certificates;
      private Key Password : The keystore password used when generating the certificate;
      certificate file : The certificate save path that is set with the-keystore parameter when the certificate is generated;

View packaging status

Open the View App Packaging Status dialog box to view the packaging history and status by viewing the packaging status in the menu bar, publish, and then:

ANDROID4 Chart



If the "Make Status" column shows "package is successful, download complete" means the cloud package is complete, click "Open Download Directory" To view the downloaded installation package.

A ready-made installation package that allows developers to continue downloading within 2 days. The server clears the file after 2 days.

The common causes of packaging failures are:
If you use your own certificate, it is most likely a certificate configuration error.
If you still have an error using the Dcloud certificate, it is probably a picture error. All image formats must be standard PNG and strictly conform to the resolution requirements. Renaming to PNG with a different picture format will cause the package to fail!
Other errors please refer to: Cloud Packaging common error Troubleshooting Guide

Next story about IOS packaging

Apple application Windows request a general certificate and a push certificate Hbuilder

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.