如何生成一个"密钥库"对于谷歌玩? [英] How do I generate a "Keystore" for Google Play?

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

问题描述

我试图找出拜占庭过程上传应用程序,以谷歌播放。

I am trying to figure out the Byzantine process for uploading an app to Google Play.

我使用的PhoneGap的赞誉系统生成我的应用程序,并且为了给我创造发布版本,我需要已经产生了密钥库。

I'm using Phonegap's Applaud system for generating my app, and in order for me to create a "release build", I need to have generated a "Keystore".

不过,当我看着谷歌自己的出版清单,没有什么它关于密钥库。

However, when I look at Google's own Publishing Checklist, there is nothing on it about a "Keystore".

我发现这个答案对堆栈溢出生成一个密钥库,理论上应该在Ubuntu中,这就是我用:

I found this answer here on Stack Overflow for generating a "Keystore", which theoretically should work on Ubuntu, which is what I'm using:

keytool –genkey –v –keystore just2try.keystore –alias someKindOfName –keyalg RSA –validity 10000

首先,究竟我应该投入的地方说 someKindOfName ?我的应用程序的名称?

First, what exactly should I be putting in where it says someKindOfName? The name of my app?

在任何情况下,当我运行它,我得到这个答复:

In any case, when I run it, I get this response:

keytool error: java.lang.RuntimeException: Usage error, –genkey is not a legal command

我用Google搜索的解决方案,但只有那些我发现是适用于Windows。

I Googled for solutions, but the only ones I found were for Windows.

有人可以提供,或点,一步引导生成此密钥库的事情我应该有一个稍微更加用户友好的一步?一有工作命令对应的Ubuntu / Linux呢?

Can someone provide, or point to, a slightly more user friendly step by step guide for generating this "Keystore" thing I'm supposed to have? One with working comands for Ubuntu/Linux?

推荐答案

您提供用于生成密钥库的命令是正确的,即

The command that you have provided for generating the keystore is correct i.e.

密钥工具-v -genkey -v -keystore just2try.keystore -alias someKindOfName -keyalg RSA -validity 10000

请执行下列操作。不要复制它,因为我相信你也都看到了一些特殊字符有关的错误。键入整个事情是在命令提示符或shell。

Please do the following. Do not copy it, since I believe the error that you are seeing it related to some special characters. Type the whole thing as is in your command prompt or shell.

just2try.keystore 是任何名称为您的基于Java的密钥存储文件。您可以选择任何名称,你这样做,或给它,你知道你可以识别的密钥库文件中的一些名字。

The just2try.keystore is any name for your Java based keystore file. You can select any name as you have done or give it some name that you know you can identify the keystore file with.

最后,请记住,密钥库就像是键的集合,其中每一个是由一个名称或别名标识。所以,你应该选择一个别名,你知道识别特定的关键。例如:myorgkey,myandroidappkey等。

Finally, keep in mind that a keystore is like a collection of keys, where each one is identified by a name or an alias. So you should pick an alias that you know identifies the specific key. Examples : myorgkey, myandroidappkey, etc.

在情况下,你忘了别名是present的密钥库,可以随时使用-list命令来查看密钥库中的所有键。 例如:密钥工具-v -list -keystore just2try.keystore

In case, you forget what alias' are present in the keystore, you can always use the -list command to see all the keys in the keystore. Example : keytool -v -list -keystore just2try.keystore

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

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