Search code examples
androidssh-keyskeytool

keytool -exportcert encoding issue


Regarding to this article article I'm trying to generate debug certificate.

keytool -exportcert -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore

give a follow result: enter image description here

where expected is somthing like this:

Certificate fingerprint: SHA1: DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09

Solution

  • Hi Run this command you will get your sha-1 key.

    keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android