Modify the Android signing certificate KeyStore passwords, alias aliases, and alias passwords _android

Source: Internet
Author: User
Tags aliases

With the custom debug KeyStore of Eclipse ADT, when Android applications develop access to various SDKs, there are many SDKs that need to rely on package Name and KeyStore fingerprint hash to identify (Baidu Map SDK, or micro-letter SDK, Sina Weibo SDK), so if you use the default automatically generated debug KeyStore will bring some trouble in the development of debugging work. Because the signature information generated by the signed apk is required to generate these open platforms, then the final secret key is applied. At this time can be modified by the formal release KeyStore, a "Follow the rules" of the temporary custom debugging certificate to the development of a more convenient, otherwise it can not be real-time debugging, every time everywhere apk too troublesome. The specific methods are as follows:

First use the cmd command to navigate to the C:\Program files (x86) \java\jdk1.8.0_25\bin> directory file:

It's right to find keytool.exe inside. Use it to manipulate the.

1. First of all, of course, first copy a formal certificate as a temporary debug certificate to be modified.

2. Modify the command for the KeyStore password (keytool is the command line tool with JDK):

Keytool-storepasswd-keystore My.keystore

Where My.keystore is the copied certificate file, it prompts for the current password for the certificate, the new password, and the duplicate new password confirmation. The previous signing certificate password is definitely not Android, and this step requires changing the password to Android.

3. Modify the alias of KeyStore:

Keytool-changealias-keystore My.keystore-alias My_name_key-destalias Aliasdebugkey

In this step, My_nam_keye is the current alias (alias) in the certificate,-destalias specifies the alias to be modified, and here is the rule to aliasdebugkey! This command prompts you to enter the KeyStore password and the current alias password.

4. Modify the password of the alias (alias):

Keytool-keypasswd-keystore My.keystore-alias Aliasdebugkey

After this step, you will be prompted to enter the KeyStore password, alias password, and then prompt for the new alias password, likewise, by the rules, change to android!

After the implementation of the above several operations, My.keystore is a compliant debug KeyStore, and then in the Eclipse ADT settings to select this custom debug KeyStore, you can use this signing certificate to debug apk.

The above is to change the signature certificate password (to Android), and then change the name of the alias of the signature, and finally change the password of the alias of the signing certificate (also changed to Android).

The above content is small to introduce to you to modify the Android signature Certificate keystore password, aliases alias alias and alias password all narration, hope everybody likes.

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.