【发布时间】:2015-01-05 22:54:41
【问题描述】:
当我使用此命令生成私钥(用于签署应用程序)时:
keytool -genkey -v -keystore myappname.keystore -alias myappname -keyalg RSA -keysize 2048 -validity 10000
...keytool 向我提出了一系列问题:
What is your first and last name?
What is the name of your organizational unit?
What is the name of your organization?
What is the name of your City or Locality?
What is the name of your State or Province?
What is the two-letter country code for this unit?
1) 这些问题的目的是什么?他们有什么后果吗?我可以用胡言乱语回答他们吗?或者这会在将应用程序发布到例如 Android 市场时给我带来问题吗?我用谷歌搜索了这个,并被指示至少用我的主机名回答第一个问题,但不清楚为什么以及这是否是严格的规则或格式应该是什么。
2) 在相关的说明中,如果我创建多个应用程序,我必须将我的所有私钥放在一个密钥库中,还是我可以将它们保存在单独的密钥库中(每个密钥库只有一个用于该应用程序的私钥)?如果我可以再次将它们分开,这将如何影响我回答这些问题的方式?
【问题讨论】:
标签: android keystore keytool signing