I am trying to get my debug.keystore md5 key so I can get the API key for Google Maps.
I run the command:
keytool –genkeypair -alias armand -keypass pass
And then running the command:
keytool -list -alias armand -keystore debug.keystore
I then enter my password and it gives me the following error:
keytool error: java.lang.Exception: Alias <armand> does not exist
What am I doing wrong?
This is right a way to get key:
To get certificate fingerprint (MD5) follow the steps below:
You need to get the keystore file for getting the certificate fingerprint (MD5).
Your keystore file can be found at the following path:
(Or)
Keystore file name is
debug.keystore.Copy the “debug.keystore” file to some other folder (ex: – “D:\Androidkeystore\”) (it’s user friendly to use).
Open command Prompt and go to the Java installed directory. (“C:\Program Files\Java\\bin”)
Then type the below line (given in box) and press enter.
Here the MD5 certificate fingerprint is
This is working, but I am getting small error here:
this is my path-C:\ANDROID\Java\jdk1.6.0\bin>keytool.exe -list -alias androiddebugkey -keystore”C:\ANDROID\debugkey\debug.keystore”-storepass android -keypass android