122

How can i see my debug.keystore password? I entered my password 3 or 4 month ago and now i don't remember.

If it is impossible, how can i create new debug.keystore?

Janusz
  • 176,216
  • 111
  • 293
  • 365
John Error
  • 1,676
  • 5
  • 15
  • 22

5 Answers5

280

Usually the debug.keystore password is just "android".

You can delete it and Eclipse will automatically generate a new one, as described here.

Community
  • 1
  • 1
Asaf Nevo
  • 9,962
  • 20
  • 69
  • 144
  • okay i try delete keystore and clean my project. adt created a new keystore, well what is default alias name? – John Error Sep 17 '12 at 09:39
  • i tried your suggestion it gives me error; Enter keystore password: keytool error: java.lang.Exception: Alias does not exist java.lang.Exception: Alias does not exist at sun.security.tools.KeyTool.doPrintEntry(Unknown Source) at sun.security.tools.KeyTool.doCommands(Unknown Source) at sun.security.tools.KeyTool.run(Unknown Source) at sun.security.tools.KeyTool.main(Unknown Source) – John Error Sep 17 '12 at 09:45
  • can you paste the line you typed ? – Asaf Nevo Sep 17 '12 at 09:48
  • 4
    Default alias is androiddebugkey – entropy Nov 18 '14 at 13:53
89

The Default Configuration of debug.keystore file:

Keystore name: "debug.keystore"
Keystore password: "android"
Key alias: "androiddebugkey"
Key password: "android"
CN: "CN=Android Debug,O=Android,C=US"

where is this file located?

For Windows User: C:\Users \ [username]\ .android\debug.keystore

For Mac OS User: ~/.android/debug.keystore

After you will get SHAH1 by below command using Command Prompt:

keytool -list -v -keystore "C:\Users\username.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

Note :above answer has just information of android studio default configuration to access debug.keystore(debug certificate) file you can make you custom certificate if you want you own password and configuration.

Hassan Saeed
  • 3,178
  • 20
  • 22
  • 1
    Just FYI there is typo in Window path. You need the backslash after [username] C:\Users\[username]\.android\debug.keystore – LakeRunner Jan 22 '21 at 18:44
4

If you are not certain that the password has been set before, try just empty password. It worked for me.

Vlad
  • 102
  • 5
3

Again you can generate your google api key. Your .keystore file will be, In Eclipse, Windows -> preferences ->Android -> build ->default debug keystore path will be there. You just use that .keystore and generate your api key again by using this link:

http://lokeshatandroid.blogspot.in/2012/05/obtaining-google-maps-api-key.html

  • Then you would need new oauth client id's. Easier to keep using the same keystore. – Tom Apr 28 '15 at 19:34
0

What i did was create signed key, I was able to observe this when i read the errors probbaly https://reactnative.dev/docs/signed-apk-android

Alabi Temitope
  • 317
  • 3
  • 10