Modify the password for Android Signing certificate keystore the alias alias and the alias password

  • 2020-12-07 04:24:47
  • OfStack

Of Eclipse ADT Custom debug keystore custom commissioning certificate, application access various SDK Android found that when they have a lot of SDK is needed by package name and keystore fingerprint hash to identify (SDK baidu map, or WeChat sdk, sina weibo sdk), so if you use the default automatically generated debug keystore words will brings to the development and debugging work more trouble. The signature information generated by apk with the signature is required to generate these open platforms, and then the final secret key is requested. By modifying the formal release keystore to generate a copy of the "follow the rules" temporary custom debugging certificate for use during development, it would be much more convenient. Otherwise, it would be impossible to debug apk in real time. The specific methods are as follows:

First use the cmd command to locate C:\Program Files (x86)\Java\ jdk1.8.0_25 \bin > Under the directory file:

You'll find keytool.exe. It's used to operate.

1. First, of course, copy a formal certificate as a temporary debugging certificate to be modified.

2. Command to change keystore password (keytool is a command-line tool with JDK) :

keytool -storepasswd -keystore my.keystore

my. keystore is a copied certificate file. After execution, it will prompt you to enter the current password of the certificate, confirm with the new password and repeat the new password. The password of the signed certificate is definitely not android, so this step needs to change the password to android.

3. Modify alias (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. -ES66en specifies the alias to be changed to. Here, by rule, change to aliasdebugkey! This command prompts for the password for keystore and the current password for alias, respectively.

4. Change the password of alias (alias) :

keytool -keypasswd -keystore my.keystore -alias aliasdebugkey

This step will prompt you for the keystore password, alias password, and then for the new alias password. Again, by the rules, change to android!

After the above operations, my.keystore is debug keystore according to the rules. Then select custom debug keystore from ADT Settings of Eclipse, and you can debug apk using the signature certificate.

This will change the signature certificate password (to android), then the name of the signed alias, and finally the password of the signed certificate alias (also to android).

The above is a complete description of the modification of Android signature certificate keystore password, the alias alias, and the alias password. I hope you enjoy it.


Related articles: