找到问题的关键哈希的签名的应用程序 [英] Find the key hash for a signed app

查看:143
本文介绍了找到问题的关键哈希的签名的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经签我的应用程序,并远销到我的桌面上的文件夹名为该文件夹中的程序是我的应用程序本身和密钥存储。我怎么觉得,我可以复制到facebook的开发者页面的密钥散列。我已经安装了OpenSSL的,但不能似乎生成密钥散列香港专业教育学院尝试在堆栈上,没有许多其他线程都似乎帮助,谢谢

詹姆斯

解决方案
  1. 您应该知道是你的密钥库文件。对我来说,是 C:\ Users \用户Selvin \桌面\ selvin.kp
  2. 您应该知道密钥库的别名。对我来说,是 selvin
  3. 您应该知道在keytool路径。 C:\ Program Files文件\的Java \ jdk1.6.0_22 \斌\ keytool.exe的
  4. 您应该知道路径的OpenSSL。 C:\的OpenSSL的Win32 \ BIN \ openssl.exe
  5. 您应该知道密码,密钥库中。对我来说,是 * 嘿嘿

那么,你应该叫:

  

C:\ Program Files文件\的Java \ jdk1.6.0_22 \斌\ keytool.exe的-exportcert -alias selvin -keystore C:\用户\ selvin \桌面\ selvin.kp | C:\的OpenSSL的Win32 \ BIN \ OpenSSL的SHA1 -binary | C:\的OpenSSL的Win32 \ BIN \ OpenSSL的的base64

更换为合适的人我的路径和别名。

这时你应该会看到:

  

输入密钥库密码:

输入您的密码,你应该得到这样的事情: NfhDlIH7XWJzUZRjL + pZySrMX1Q =

EDITED NfgDlIG7XWJzUZRUL + bZySrMX1Q = < - 是一个糟糕的哈希值。或者你有这么幸运,你的钥匙做出同样的碰撞

  

错误:keytool的错误:java.lang.Exception的:别名不存在

如果哈希不工作:

首先,通话

  

C:\ Program Files文件\的Java \ jdk1.6.0_22 \斌\ keytool.exe的-exportcert -alias selvin -keystore C:\用户\ selvin \桌面\ selvin.kp

键入密码和读取错误

如果你不记得你的别名的keytool错误:java.lang.Exception的:别名< selvinn>不存在我用selvinn显示错误。

有关所有输入/别名的列表:

  

C:\ Program Files文件\的Java \ jdk1.6.0_22 \斌\ keytool.exe的-list -keystore C:\用户\ selvin \桌面\ selvin.kp

第二次修改

I have signed my app and exported it to a folder on my desktop called app in this folder is my app itself and the keystore. How do i find the key hash that i can copy into the facebook developers page. i have openssl installed but cant seem to generate the key hash ive tried many other threads on stack and none have seemed to help, thanks

James

解决方案

  1. You should know where is your keystore file. For me is C:\Users\Selvin\Desktop\selvin.kp
  2. You should know your alias in keystore. For me is selvin
  3. You should know path to keytool. C:\Program Files\Java\jdk1.6.0_22\bin\keytool.exe
  4. You should know path to openssl. C:\OpenSSL-Win32\bin\openssl.exe
  5. You should know password to keystore. For me is * hehe

Then, you should call:

C:\Program Files\Java\jdk1.6.0_22\bin\keytool.exe" -exportcert -alias selvin -keystore c:\users\selvin\desktop\selvin.kp | C:\OpenSSL-Win32\bin\openssl sha1 -binary | C:\OpenSSL-Win32\bin\openssl base64

Replace my path and alias with proper ones.

Then you should see:

Enter keystore password:

Enter your password and you should get something like this: NfhDlIH7XWJzUZRjL+pZySrMX1Q=

EDITED: NfgDlIG7XWJzUZRUL+bZySrMX1Q= <- is a bad hash. Or you got so lucky that your key made the same collision as

error:keytool error: java.lang.Exception: Alias does not exist

If hash not working:

First, call

C:\Program Files\Java\jdk1.6.0_22\bin\keytool.exe" -exportcert -alias selvin -keystore c:\users\selvin\desktop\selvin.kp

Type password and read the error

If you don't remember your alias keytool error: java.lang.Exception: Alias <selvinn> does not exist I used selvinn to show error.

For a list of all your entries/aliases:

C:\Program Files\Java\jdk1.6.0_22\bin\keytool.exe -list -keystore c:\users\selvin\desktop\selvin.kp

second edit

这篇关于找到问题的关键哈希的签名的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆