我如何找到并运行keytool [英] How can I find and run the keytool

查看:304
本文介绍了我如何找到并运行keytool的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读Facebook开发人员的发展指南,网址为:这里

I am reading an development guide of Facebook Developers at here

它说我必须使用keytool导出我的应用程序的签名,如:

It says that I must use keytool to export the signature for my app such as:


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

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

我不知道如何找到密钥工具来运行它。我试图打开一个Windows命令提示符并粘贴上述命令,但它没有起作用。

I do not know how to find the keytool in order to run it. I tried to open a Windows command prompt and paste the above command, but it did not work.

推荐答案

我找到了一个解决方案我自己如下报价。它的工作正常。

I found a solution by myself as below quote. It works fine.


C:\Program Files\Java\jdk1.6.0_26\bin\keytool.exe -exportcert -alias
sociallisting -keystoreD:\keystore\SocialListing|
C:\cygwin\bin\openssl.exesha1 -binary | C:\cygwin\bin\openssl.exe
base64

"C:\Program Files\Java\jdk1.6.0_26\bin\keytool.exe" -exportcert -alias sociallisting -keystore "D:\keystore\SocialListing" | "C:\cygwin\bin\openssl.exe" sha1 -binary | "C:\cygwin\bin\openssl.exe" base64

这篇关于我如何找到并运行keytool的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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