Andrea Golin
Andrea Golin

Reputation: 128

Android debug.keystore issue

i've got a little problem while generating my SHA1 for an app i'm developing, (please understand i'm really new to android developement). I'm using ECLIPSE on win 7, and the .android/debug.keystore file seems to be correctly generated... the point is: when i navigate inside c:\Users\myUser.android via windows console i try to run the file this way:

c:\Users\myUser\.android>debug.keystore

When i press submit,it open the "impossible open the file" window, and it asks me to select a program, local or on internet, to be able to run the file..

I know it's quite simple operation, but i'm gettin mad on it... What am i doing wrong?

Thank you all

Upvotes: 1

Views: 3932

Answers (2)

Dulitha Kularathna
Dulitha Kularathna

Reputation: 33

More precisely it would be like this

keytool -exportcert -alias androiddebugkey -keystore C:\Users\your_account_name.android\debug.keystore | C:\OpenSSL\bin\openssl sha1 -binary | C:\OpenSSL\bin\openssl base64

You will have to download OpeSSL and extract in a folder, mine is C:\OperSSL Execute this code inside the JDK bin folder

Upvotes: 0

Andrea Golin
Andrea Golin

Reputation: 128

Solved! The answer of prosper was actually the right one, i should execute the keytool command inside the JDK folder that contains the keytool... Many thanks to everyone

C:\Program Files\Java\jdk1.7.0_09\bin>keytool -list -v -keystore "C:\Users\your_user_name\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

Upvotes: 9

Related Questions