简体   繁体   English

AppCenter:必须引用包含私钥和相应公钥证书链的有效 KeyStore 密钥条目

[英]AppCenter: must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain

I have uploaded our keystore and set the keystore password accordingly but I don't have a clue what the alias and key password will be and it doesn't provide any documentation anywhere in the appcenter.ms documentation as to where these would be and they don't appear anywhere in VS.net 2019 that I could find them.我已经上传了我们的密钥库并相应地设置了密钥库密码,但我不知道别名和密钥密码是什么,并且它没有在 appcenter.ms 文档中的任何地方提供任何文档,说明它们的位置和它们不要出现在 VS.net 2019 中我能找到的任何地方。

So how does one get this working with code signing for upload to the play store automatically?那么如何使用代码签名来自动上传到 Play 商店呢?

This isn't answered here: How to check certificate name and alias in keystore files?这里没有回答: 如何检查密钥库文件中的证书名称和别名? because that doesn't help from a vs.net project that has generated the keystore and does this automatically.因为这对生成密钥库并自动执行此操作的 vs.net 项目没有帮助。 AppCenter either shouldn't be requiring these additional fields or they should be self-evident without having to hack a bunch of java commands. AppCenter 要么不需要这些额外的字段,要么它们应该是不言而喻的,而不必破解一堆 java 命令。 There must be an easier/better way and also the keystore tool doesn't work on windows against a .keystore file.必须有一种更简单/更好的方法,并且密钥库工具也不适用于 Windows 上的 .keystore 文件。

Thanks!谢谢!

So for those that are looking for a concise answer on how to do this if you generate a keystore and publish manually per the docs in VS.net and then want to use that keystore in app center:因此,对于那些正在寻找有关如何执行此操作的简明答案的人,如果您生成密钥库并根据 VS.net 中的文档手动发布,然后想在应用程序中心使用该密钥库:

  1. Export the keystore in Visual Studio.在 Visual Studio 中导出密钥库。
  2. Use this command: keytool.exe -list -v -keystore {filename} -storepass {keystore password} -keypass {keystore password}使用这个命令:keytool.exe -list -v -keystore {filename} -storepass {keystore password} -keypass {keystore password}
  3. This will bring up the alias that it created.这将调出它创建的别名。
  4. In App Center enter the alias per the output, and then both passwords are the same.在 App Center 中输入每个输出的别名,然后两个密码是相同的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM