出现提示时,使用 OpenSSL 的 Facebook SDK 的 Android key 哈希生成未设置为 android

标签 android facebook ssl hash key

我用下面方法生成的密码有问题

First open a terminal (open a command prompt in windows). Navigate in the terminal to the directory where your Android debug.keystore is stored. Mostly it will located under “/Users/user_name/.android/” (In Windows will be C:\Documents and Settings.android).

Once you are in the “.android” directory, run the following command.

keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl base64

When it prompts you for a password, type android and hit Enter

Copy the value printed in the terminal that ends with an “=” and paste it in the Key Hash field in Facebook. Then click the Save Changes button.

当我生成 key 时,我输入了自己的密码,而不是使用“android”。我想知道是否有一种简单的方法可以将密码更改为“android”而无需卸载所有内容或其他内容。如果没有办法修改密码,是否意味着我必须生成新 key ?我找到了一些东西 that can be used to modify ssh keys ,但我不确定如何应用它以及在哪个文件中查找该 key 。

最佳答案

您已将完整路径放入 openssl,该路径通常位于 ssl/bin 中。请检查您的 ssl 目录路径

keytool -exportcert -alias androiddebugkey -keystore debug.keystore | C:/ssl/bin/openssl sha1 -binary | C:/ssl/bin/openssl base64

关于出现提示时,使用 OpenSSL 的 Facebook SDK 的 Android key 哈希生成未设置为 android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20822063/

相关文章:

c++ - Cocos2D-x App for BB Playbook/Z10 如何在 Facebook 状态分享分数?

asp.net - 不清楚的 TLS Rec 第 1 层加密警报

android - 可以 `tools:replace="安卓 :supportsRtl "` go along with ` tools:ignore ="AllowBackup"`?

android - AutoCompleteTextView 不显示任何下拉项

java - 无法使用 Android Studio 2.1 从 SQLite 数据库获取值

python - 使用python向facebook上的人发送消息

java - 使我的内容在 Facebook 墙上看起来不错,同时通过 Java 中的应用程序发布

ssl - TLS 握手错误

android - 强制在 Android 应用程序中更新证书 .pem

android - Lollipop 无法在 Genymotion 中启动