简体   繁体   中英

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.

So how does one get this working with code signing for upload to the play store automatically?

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. AppCenter either shouldn't be requiring these additional fields or they should be self-evident without having to hack a bunch of java commands. There must be an easier/better way and also the keystore tool doesn't work on windows against a .keystore file.

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:

  1. Export the keystore in Visual Studio.
  2. Use this command: 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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