当我上传PEPK工具的输出时,Google Play控制台会显示& quot;提供的证书无效.请提交其他证书. [英] When I upload the output of PEPK tools, Google Play Console says "The certificate provided is invalid. Please submit a different certificate."
问题描述
这是我根据Google Play在计算机上执行的命令:
This is the command I executed in my computer according to Google Play:
java -jar pepk.jar --keystore=foo.keystore --alias=foo --output=output.zip --encryptionkey=blabla --include-cert
,然后我上传了 output.zip
.Google Play控制台告诉我:
and I uploaded the output.zip
. Google Play Console told me that:
提供的证书无效.请提交其他证书.
The certificate provided is invalid. Please submit a different certificate.
此外, output.zip
中有两个文件: certificate.pem
和 encryptedPrivateKey
.
Besides, there are two files in the output.zip
: certificate.pem
and encryptedPrivateKey
.
推荐答案
我认为这会在您的密钥过期太快时发生.您是否使用具有默认密钥有效期的keytool创建了密钥?
I think this happens when your key expires too soon. Did you create your key with keytool with a default key validity period?
在新控制台中,错误消息有所不同,甚至描述性更差:
In the new console, the error message is different and even less descriptive:
私有密钥未正确加密,或者不是我们支持的密钥类型.
The private key was not properly encrypted or is not a type of key that we support.
最后,我通过使用Android Studio创建具有默认25年密钥有效期的密钥存储区来解决此问题.
In the end I resolved this by using Android Studio to create the key store with the default 25 year key validity period.
这篇关于当我上传PEPK工具的输出时,Google Play控制台会显示& quot;提供的证书无效.请提交其他证书.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!