0

When obtaining my md5 fingerprint for an Android app I have encountered problems when entering the keystore command on both the cmd and jdk bin prompt:

keystore is an invalid command

In the cmd I got this error,which I researched and found that it means my keystore path is incorrect.So I double checked my path and it was correct and found a tutorial explaining to enter the same command through the jdk bin cmd prompt:

Access denied

key store address is:

C:\Users\Brian\.android\debug.keystore

The command I'm using is as follows:

keytool -list -alias androiddebugkey -keystore C:\Users\Brian\.android\debug.keystore   -storepass android -keypass android
Brian J
  • 5,416
  • 19
  • 94
  • 189

1 Answers1

2

What are you trying to obtain. Maby this answer can help https://stackoverflow.com/a/14042038/928591

I see what your problem is, you are trying to obtain a debug key but you specify a path. but try to just copy paste this commnad without modifying it.

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

it worked for me to obtain my debug key for a facebook app. I could be wrong about this but I think this should work

Edit Did some digging, the keytool comes with the java jdk. like commonsware answerd here so do you have the JDK or the SDK installed is my next question.

Edit (another) to answer you question in the comment take a look here. http://docs.oracle.com/javase/tutorial/essential/environment/paths.html

finale update this is the last update for this particular answer. Browse to the JDK folder and execute the command from that directory.

kind regards

Community
  • 1
  • 1
Maikel Bollemeijer
  • 6,265
  • 5
  • 23
  • 46