在 Android 上获取 facebook 应用程序签名的正确 keytool 命令是什么?
我正在尝试使用 openssl 导出我的应用程序的密钥。我遵循了 facebook 开发人员指南,但在涉及 keytool 命令时我陷入了困境。
Facebook 是这样的:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
我的也是这样:
"C:\Program Files\Java\jdk1.6.0_23\bin\keytool" -exportcert -alias androiddebugkey -keystore "C:\Users\blah\.android\debug.keystore" | "C:\blah\bin\openssl" sha1 -binary |"C:\blah\bin\openssl" base64
我以管理员身份运行 openssl.exe。当我运行上述命令时,它显示 "Openssl Error: "C:\program files\java\jdk1.6.0_23\bin\keytool
"" 是无效命令。
请帮忙!谢谢
I am trying to use openssl to export the key for my app. I followed the facebook developers guide but I am stuck when it comes to the keytool command.
Facebook has it this way:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
I have mine this way:
"C:\Program Files\Java\jdk1.6.0_23\bin\keytool" -exportcert -alias androiddebugkey -keystore "C:\Users\blah\.android\debug.keystore" | "C:\blah\bin\openssl" sha1 -binary |"C:\blah\bin\openssl" base64
I run openssl.exe as an administrator. When I run the above command, it says "Openssl Error: "C:\program files\java\jdk1.6.0_23\bin\keytool
"" is an invalid command.
Please help! Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过执行以下操作让它在 Windows 7 上工作:
将整个 bin 目录从 openssl 安装复制到 keytool 所在的 jdk.xx\bin 目录。
运行 facebook 文档中所示的命令,如下所示:
它要求输入密码(仅一次),即 android
这对你有用
I got it to work on Windows 7 by doing the following:
Copy the entire bin directory from the openssl install to the jdk.x.x\bin directory where the keytool is.
Run the command as shown in the facebook doc as follows:
It asks for a password (only once) which is android
Hope this works for you