Android modifies the keystore password, alias, and alias password of the Android signature certificate, and androidkeystore
Reprinted please indicate the source: http://blog.csdn.net/yybj/article/details/43488705
I. Description
In mobile development recently, every time you run a program, you must add a keystore for debugging. Therefore, write down the custom keystore method.
In fact, Android app development and access to various sdks will find that many sdks need to be identified by the package name and keystore fingerprint hash (Baidu map SDK, Facebook SDK, etc ...), In this way, if the default automatically generated debugkeystore is used, it will cause some trouble for development and debugging. In this case, you can modify the official release keystore to generate a temporary custom debugging certificate that complies with the rules for development. The procedure is as follows:
Ii. Operation Method
0. You must first have a keystore. (I won't talk about how to create a keystore. it's too simple. I won't check the operation method on the Internet .)
Here I will create a keystore example:
Keystore name: my. keystore
Keystore password: my123456
Alias Name: me
Alias password: me123456
Now that the preparation is complete, start the specific operation ~
1. First of all, of course, copy a formal certificate as a temporary debugging certificate to be modified.
Copy my. keystore to the JDK bin directory, as shown in:
2. Modify the keystore PASSWORD Command (keytool is the command line tool with JDK ):
The keytool.exe tool is shown in the red box.
Open the cmd command.
① Cd C: \ Program Files \ Java \ jdk1.7.0 _ 02 \ bin
② Keytool-storepasswd-keystore my. keystore
My. keystore is a copied Certificate file. After the file is executed, a prompt is displayed, indicating that the current password of the certificate is entered, the new password, and the new password are confirmed again. In this step, you need to change the password to android.
3. Modify the alias of the keystore:
Keytool-changealias-keystore my. keystore-alias me-destalias androiddebugkey
In this step, "me" is the current alias in the certificate, and "-destalias" specifies the alias to be modified. Here we will change it to "androiddebugkey" according to the rules! This command prompts you to enter the keystore password and the current alias password.
4. Modify the alias password:
Keytool-keypasswd-keystore my. keystore-alias androiddebugkey
After performing this step, you will be prompted to enter the keystore password and the alias password, and then enter the new alias password. Similarly, follow the rules and change it to android!
After the above operations are executed, my. keystore is the debug keystore that complies with the rules. Then, select this m debug keystore In the ADT settings of Eclipse, as shown below:
You can also see the MD5 and SHA1 fingerprints of the certificate.
Note: The preceding three steps are not sequential. In this way, we can use the custom keystore for debugging and development, which is much more convenient.
Reference: [TUT] Change alias passwords of your Android Keystore
Http://blog.blundell-apps.com/tut-change-alias-passwords-of-your-android-keystore/#comment-2408