我应该如何使用“专有名称”在我们的Android Market Keystore中 [英] What should I use for "Distinguished Name" in our Keystore for the Android Market
问题描述
我即将在Android Market上发布应用程序。我需要生成一个密钥库来签署我的应用程序。这些文档对我支持的 -dname
参数有一些帮助。
这里是我正在使用的行:
keytool -genkey -v -alias release -keyalg RSA -keysize 2048 -dnameCN = mydomain.com-keystore my.keystore -validity 10000
<$ c需要什么$ c> -dname (可分辨名称)字段?我发现我可以包含 CN
字段。在市场接受应用程序之前,我还需要投入其他领域吗?任何好的可选的放入?
更新
我发现我可以检查其他apk的使用:
jarsigner -verify -verbose -certs nameof.apk
以下是一些例子: rel =noreferrer> http://slideme.org/ X.509,CN = SlideME,OU = SlideME,O = SlideME,L =西雅图,ST = WA,C = US
X.509,CN =未知,OU =未知,O = Opera软件ASA,L = ST =未知,C = NO
X.509,CN = Romeo Ordos,O = GHOR Corp., L =顿涅茨克,C = UA
与贵公司对应的专有名称。以下是您可以使用的组件类型列表:
就我所知,您可以使用一个完整的标识名称来用逗号分隔每个组件。例如,你可以使用: CN = christophercotton.com,L = Franklin
。
I'm about to release an application in the Android Market. I need to generate a keystore to sign my application. The docs are a little spares on what I'm support to put into for the -dname
param.
Here is the line I'm using:
keytool -genkey -v -alias release -keyalg RSA -keysize 2048 -dname "CN=mydomain.com" -keystore my.keystore -validity 10000
What is required in the -dname
(Distinguished Name) field? I found out that I can include the CN
field. Are there other fields that I must put in before the Market will accept the app? Any good optional ones to put in?
Updated I found out I can examine other apk's by using:
jarsigner -verify -verbose -certs nameof.apk
Here are some examples:
- from http://slideme.org/
X.509, CN=SlideME, OU=SlideME, O=SlideME, L=Seattle, ST=WA, C=US
- Opera Mini
X.509, CN=Unknown, OU=Unknown, O=Opera Software ASA, L=Oslo, ST=Unknown, C=NO
- Another random app,
X.509, CN=Romeo Ordos, O=GHOR Corp., L=Donetsk, C=UA
You should use the distinguished name that corresponds to your company. Here is a list of the types of components that you can use:
As far as I know, you can use a complete Distinguised Name separating each component by a comma. For instance, in your case you could use: CN=christophercotton.com,L=Franklin
.
这篇关于我应该如何使用“专有名称”在我们的Android Market Keystore中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!