Create a keystore for Android Packaging

Source: Internet
Author: User

When we use eclipse or other ide for development, when you run as Android Application, we use the default keystore for signature. The default location is, for example, in: C: \ Users \ Administrator \. android \ debug. keystore. When the application is going to be launched, it uses the specific keystore of your own application. How can we create this keystore?

The keystore is generated by the built-in JDK tool keytool. For details, refer:

Run cmd to enter the command line, enter the bin directory of java_home in command line mode, and then type the following command:

Keytool.exe-genkey-alias MyApp. keystore-keyalg RSA-validity 20000-keystore rbase. keystore

To create a keystore:

 

Parameter description:
-Alias
Followed by an alias. Here is MyApp. keystore.
-KeyalgThe encryption method is RSA.
-ValidityYes. The validity period is 20000.
-KeystoreThe name of the keystore to be generated. Here is rbase. keystore.
The file name is rbase. keystore (the bin directory of the file under java_home) has an alias of MyApp. keystore. If Android is used for packaging, the file name and alias must be used. please note!

Related Article

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.