如何创建一个密钥库? [英] How can I create a keystore?

查看:182
本文介绍了如何创建一个密钥库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪些步骤来创建为Android密钥库(在Eclipse环境中)? 我需要使用谷歌地图在我的应用程序,我不知道我错过了什么步骤。 请为我提供的具体详细步骤(我没有从导游理解它)。

What are the steps to create a keystore for android (in an eclipse environment)? I need to use google maps in my app and I don't know what steps I missed. Please provide me with the specific detailed steps (I didn't understand it from the guides).

感谢提前。

推荐答案

要回答标题中的问题,将创建Java Keytool实用程序附带的任何标准的JDK分布,可以位于%JAVA_HOME%密钥库\ BIN。在Windows上,这通常会是。C:\ Program Files文件\的Java \ jre7 \ BIN

To answer the question in the title, you create a keystore with the Java Keytool utility that comes with any standard JDK distribution and can be located at '%JAVA_HOME%\bin'. On Windows this would usually be 'C:\Program Files\Java\jre7\bin'.

因此​​在Windows上,打开命令窗口,并切换到该目录,然后输入如下命令

So on Windows, open a command window and switch to that directory and enter a command like this

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

的Keytool提示您​​提供密码的密钥库,提供专有名称字段,然后的密码钥匙。然后生成密钥存储为文件名为my-释放key.keystore在你的目录中的密钥库和密钥是由您输入的密码保护。密钥库包含单个密钥,有效10000天。别名是你的名字 - 在签署您的应用程序参照本密钥库将在以后使用,

Keytool prompts you to provide passwords for the keystore, provide the Distinguished Name fields and then the password for your key. It then generates the keystore as a file called my-release-key.keystore in the directory you're in. The keystore and key are protected by the passwords you entered. The keystore contains a single key, valid for 10000 days. The alias is a name that you — will use later, to refer to this keystore when signing your application.

有关keytool的更多信息,请阅读文档:<一href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html">http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html

For more information about Keytool, see the documentation at: http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html

和上签署Android应用程序去这里的更多信息:<一href="http://developer.android.com/tools/publishing/app-signing.html">http://developer.android.com/tools/publishing/app-signing.html

and for more information on signing Android apps go here: http://developer.android.com/tools/publishing/app-signing.html

这篇关于如何创建一个密钥库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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