Android certificate is expired

故事扮演 提交于 2019-12-12 16:19:23

问题


I currently have an error message when signing my app, saying that the certificate is expired (not the debug one). (I know that is surprising since Android certificate should be available many years !). I can't create a new certificate because I get an error when updating my apk on the PlayStore (certificate of the apk have to be the same as the previous one)

Is it even possible to renew my keystore ?

Is the only possiblity create a new application ?


回答1:


Maybe (but I never tested) you can regenerate a certificate with the same couple public/private keys. If it does not work, unfortunately I think you will have to generate a new certificate. Do not forget to add the -validity <valdays> option with a very large number of days. You will also have to change the package name as explained in this blog post.

UPDATE

According to @KIDdAe comment (see below), Google verifies the SHA1 fingerprint of the certificate and not only the certificate signature with the public key. Therefore recreating a new certificate with the same key is useless since the SHA1 of that new certificate will differ from the initial one.



来源:https://stackoverflow.com/questions/21781256/android-certificate-is-expired

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