When I upload the output of PEPK tools, Google Play Console says “The certificate provided is invalid. Please submit a different certificate.”

血红的双手。 提交于 2021-01-28 11:51:09

问题


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

and I uploaded the output.zip. Google Play Console told me that:

The certificate provided is invalid. Please submit a different certificate.

Besides, there are two files in the output.zip: certificate.pem and encryptedPrivateKey.


回答1:


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.

In the end I resolved this by using Android Studio to create the key store with the default 25 year key validity period.



来源:https://stackoverflow.com/questions/59081016/when-i-upload-the-output-of-pepk-tools-google-play-console-says-the-certificat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!