简体   繁体   中英

Can`t get my keyhash for Facebook SDK

Ok , I read this

Find the key hash for a signed app

which is a good help, but when I try to run my full command line

keytool -exportcert -alias MyAlias -keystore C:\Users\Luiz Aurio\Desktop\Java Project\Android\Mykeystore.kp | C:\OpenSSL-Win32\bin\openssl sha1 -binary | C:\Users\Luiz Aurio\Desktop\Java Project\opencss\bin\openssl base64

I receive this error message

"The input line is too long"

What am I doing wrong here?

Try this:

keytool -exportcert -alias androiddebugkey -keystore "C:\Documents and Settings\trainee\.android\debug.keystore" | "C:\OpenSSL\bin\openssl" sha1 -binary |"C:\OpenSSL\bin\openssl" base64

or

keytool -exportcert -alias androiddebugkey  -keystore C:\Documents and Settings\trainee\.android\debug.keystore | openssl sha1 -binary | openssl enc -a -e

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM