1

My original password for Android keystore is 123, when I changed to abc using the command

keytool -storepasswd -keystore my.keystore

Now when I export the app using Eclipse, I found that the 1st password to be entered is abc, but the 2nd password to be entered is still 123

Is this the normal result?

So how can I change both password?

Thanks.

Howard
  • 18,205
  • 34
  • 108
  • 175

1 Answers1

2

The second password protects the private key in the key-store. You should be able to change it using the command

keytool -keypasswd -alias <myKeyAlias> -keystore my.keystore 

Replace with the name of the key displayed in Eclipse.

Robert
  • 36,354
  • 15
  • 89
  • 140
  • If the 2nd password protects the private key in the key-store, so what does the 1st password do? – Howard Jul 26 '12 at 14:48
  • The password is for the overall keystore. Without it you are not able to read anything event the certificates that do not have a private key. – Robert Jul 26 '12 at 17:32
  • I accepted as correct answer. Just some followup if you don't mind: 1. is it common to use the same password? 2. What are the risk if my keystore and password are leaked? – Howard Jul 27 '12 at 03:32