Created
November 26, 2015 08:24
-
-
Save litefeel/2d7a09693ec3dc200623 to your computer and use it in GitHub Desktop.
get key hash from keystore file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get key hash from keystore file | |
# first | |
SET KEY_TOOL=%JAVA_HOME%/bin/keytool.exe | |
SET OPEN_SSL=%openssl% | |
SET ALIAS=androiddebugkey | |
SET KEY_STORE="C:/Users/myuser/.android/debug.keystore" | |
#keytool -exportcert -alias androiddebugkey -keystore "C:/Users/xiaoqing.zhang/.android/debug.keystore" | openssl sha1 -binary |openssl base64 | |
%KEY_TOOL% -exportcert -alias %ALIAS% -keystore %KEY_STORE% | %OPEN_SSL% sha1 -binary | %OPEN_SSL% base64 | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment