Android 密钥库 - 组织单位名称
Android Key Store - Name of Organizational Unit
我用 PhoneGap build 开发了一个不错的 Android 应用程序。
但现在我无法将其上传到 google playstore 以解决签名问题。
玩过 Google 之后,我找到了使用 keystore 工具对其进行签名的方法。
一切都很好。
但它要求组织单位名称。
现在是什么?我在哪里可以找到它?它有什么必要性?
没有它我无法继续。
谢谢。
这是你所在公司部门的名称,如果你在一个部门工作的话。例如,参见 here。
我通常把IT放在那个领域。
组织单位名称指贵公司部门。
如果您在 IT 软件部门工作,则只需在此字段中填写 IT 软件。
密钥库管理器是一个 window,允许您创建、配置或加载 Android keystores
和钥匙。有关详细信息,请参阅 Android 的 Keys, Certificates and Keystores 文档。
密钥库管理器Window
组织单位:输入您的组织单位。组织单位是组织内的不同部门。这适用于拥有“工程”或“开发”等多个部门的公司。对于 示例,例如“开发”或“Android 开发团队”。
组织:输入管理您的应用程序的组织。 例如:您的公司名称.
完整示例
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: YourFirstName YourLastName
What is the name of your organizational unit?
[Unknown]: Indie
What is the name of your organization?
[Unknown]: Your Company Name
What is the name of your City or Locality?
[Unknown]: YourCity
What is the name of your State or Province?
[Unknown]: ST
What is the two-letter country code for this unit?
[Unknown]: US
Is CN=YourFirstName YourLastName, OU=Indie, O=Your Company Name, L=YourCity, ST=ST, C=US correct?
[no]: yes
Generating 1,024 bit RSA key pair and self-signed certificate (SHA1withRSA) with a validity of 999,999 days
for: CN=YourFirstName YourLastName, OU=Indie, O=Your Company Name, L=YourCity, ST=ST, C=US
Enter key password for
(RETURN if same as keystore password):
Re-enter new password:
[Storing swapit.keystore]
有关更多信息,请参阅 https://docs.unity3d.com/2020.1/Documentation/Manual/android-keystore-manager.html
我猜你是想说 keytool
工具而不是 keystore
工具,因为我不知道 keystore
工具 :)
如果可以的话,我只是将大部分字段留空。您可以使用 keytool
的 dname
参数来做到这一点。例如:
keytool -genkeypair -alias foo -keyalg RSA -keystore mystore.p12 -dname CN=JoeBloggs
这会将 CN(“名字和姓氏”)设置为 JoeBloggs,但将所有其他字段(包括组织单位)留空。您可以使用如下命令查看结果:keytool -list -keystore mystore.p12 -v
我用 PhoneGap build 开发了一个不错的 Android 应用程序。
但现在我无法将其上传到 google playstore 以解决签名问题。
玩过 Google 之后,我找到了使用 keystore 工具对其进行签名的方法。
一切都很好。
但它要求组织单位名称。
现在是什么?我在哪里可以找到它?它有什么必要性?
没有它我无法继续。
谢谢。
这是你所在公司部门的名称,如果你在一个部门工作的话。例如,参见 here。
我通常把IT放在那个领域。
组织单位名称指贵公司部门。
如果您在 IT 软件部门工作,则只需在此字段中填写 IT 软件。
密钥库管理器是一个 window,允许您创建、配置或加载 Android keystores
和钥匙。有关详细信息,请参阅 Android 的 Keys, Certificates and Keystores 文档。
密钥库管理器Window
组织单位:输入您的组织单位。组织单位是组织内的不同部门。这适用于拥有“工程”或“开发”等多个部门的公司。对于 示例,例如“开发”或“Android 开发团队”。
组织:输入管理您的应用程序的组织。 例如:您的公司名称.
完整示例
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: YourFirstName YourLastName
What is the name of your organizational unit?
[Unknown]: Indie
What is the name of your organization?
[Unknown]: Your Company Name
What is the name of your City or Locality?
[Unknown]: YourCity
What is the name of your State or Province?
[Unknown]: ST
What is the two-letter country code for this unit?
[Unknown]: US
Is CN=YourFirstName YourLastName, OU=Indie, O=Your Company Name, L=YourCity, ST=ST, C=US correct?
[no]: yes
Generating 1,024 bit RSA key pair and self-signed certificate (SHA1withRSA) with a validity of 999,999 days
for: CN=YourFirstName YourLastName, OU=Indie, O=Your Company Name, L=YourCity, ST=ST, C=US
Enter key password for
(RETURN if same as keystore password):
Re-enter new password:
[Storing swapit.keystore]
有关更多信息,请参阅 https://docs.unity3d.com/2020.1/Documentation/Manual/android-keystore-manager.html
我猜你是想说 keytool
工具而不是 keystore
工具,因为我不知道 keystore
工具 :)
如果可以的话,我只是将大部分字段留空。您可以使用 keytool
的 dname
参数来做到这一点。例如:
keytool -genkeypair -alias foo -keyalg RSA -keystore mystore.p12 -dname CN=JoeBloggs
这会将 CN(“名字和姓氏”)设置为 JoeBloggs,但将所有其他字段(包括组织单位)留空。您可以使用如下命令查看结果:keytool -list -keystore mystore.p12 -v