Android证书已过期 [英] Android certificate is expired

查看:1944
本文介绍了Android证书已过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在签署我的应用程式时发出错误讯息,表示凭证已过期(不是侦错凭证)。 (我知道这是令人惊讶的,因为Android证书应该可用多年!)。
我无法创建新证书,因为我在PlayStore上更新我的apk时出现错误(apk的证书必须与上一个相同)



是否可以续订我的密钥库?



是否唯一可能创建一个新应用程序?

解决方案

也许(但我从来没有测试过)你可以用相同的公钥/私钥重新生成证书。如果它不工作,不幸的是我认为你将不得不生成一个新的证书。不要忘记在非常大的天数内添加 -validity< valdays> 选项。您还必须按照此处的说明更改软件包名称



根据@KIDdAe评论(见下文),Google会验证证书的SHA1指纹,而不仅仅是具有公钥的证书签名。因此,使用相同的密钥重新创建新证书是无用的,因为该新证书的SHA1将不同于初始证书。


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 ?

解决方案

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.

这篇关于Android证书已过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆