What should I use for “Distinguished Name” in our Keystore for the Android Market

醉酒当歌 提交于 2019-12-03 09:56:04

问题


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

回答1:


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.




回答2:


As far as I know, those information are not used/display by Google Play.



来源:https://stackoverflow.com/questions/3284055/what-should-i-use-for-distinguished-name-in-our-keystore-for-the-android-marke

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!