Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keystore file doesn't exist

I'm trying to get the SHA1 fingerprint so I can get an Google API key. Im in the following directory:

/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin

Then I execute the command from the google site :

keytool -list -v -keystore mystore.keystore

But it gives this error:

keytool error: java.lang.Exception: Keystore file does not exist: mystore.keystore java.lang.Exception: Keystore file does not exist: mystore.keystore     at sun.security.tools.keytool.Main.doCommands(Main.java:742)     at sun.security.tools.keytool.Main.run(Main.java:340)     at sun.security.tools.keytool.Main.main(Main.java:333) 

I followed tutorials but I can't get it to work! Does anyone know what I am doing wrong?

BTW: I'm using a Macbook Pro with Xamarin Studio 5.5.2.

like image 462
Bas Avatar asked Nov 20 '14 10:11

Bas


People also ask

What is a keystore file?

A keystore file contains one or more pairs of a private key and signed certificate for its corresponding public key. The keystore should be strongly protected with a password, and stored (either on the file system or elsewhere) so that it is accessible only to administrators.

Where is the keystore located?

The default location is /Users/<username>/. android/debug. keystore.


1 Answers

Linux & Mac command

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android 

Will give you SHA1, SHA256, MD5 for default debug key. And it can be used for developing and debugging with google play services.

For publication certificate just follow https://developer.android.com/studio/publish/app-signing.html

like image 52
Andrew Avatar answered Sep 18 '22 12:09

Andrew