Android应用程序证书有效期
是否可以更改证书的有效期?
key-a:有效期为 2 年。
apk-a:用 key-a 签名。
apk-b:用 ? 签名有效期为 25 年。
apk-a 和 apk-b 是具有相同包名的相同应用程序。
假设有一个用户在他的手机上安装了 apk-a。我怎样才能让他安装 apk-b 作为更新。
到目前为止我已经尝试过:
1.)我尝试使用 keytool 通过以下命令扩展现有密钥的有效性。
keytool -selfcert -v -alias mycertalias -validity 80000 -keystore teststore.jks -storepass mypassword
结果: 使用此密钥签名的 apk-b 无法安装在手机上。(需要卸载之前的版本。)
2.)我已经创建了 key-b,它有一个有效期25年。 并使用两个密钥对 apk-b 进行签名。
结果:同上。
ps 1:我已经在三星 Galaxy i7500 上测试了这些。(安装了 android 1.6)
ps 2:我的应用程序在网站上。我与android market无关。
Is it possible to change the validity of a certificate?
key-a:has validity of 2 years.
apk-a:signed with key-a.
apk-b:signed with ? which has 25 years validity.
apk-a and apk-b are the same applications with the same package name.
Suppose there is a user who has installed apk-a on his cell phone.How can i make it possible for him to install apk-b as an update.
Here what i have tried so far:
1.)I tried using keytool the expand the validity of the existing key with the below command.
keytool -selfcert -v -alias mycertalias -validity 80000 -keystore teststore.jks -storepass mypassword
result: apk-b which is signed with this key cannot be installed on the cell phone.(requires previous one to be uninstalled.)
2.)I have created key-b which has a validity of 25 years.
and signed the apk-b with both keys.
result:same as above.
ps 1: I have tested these on samsung galaxy i7500.(which has android 1.6 installed on it)
ps 2: My application is on a website.I got nothing to do with android market.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那是不可能的,抱歉。他们需要卸载旧应用程序并安装新应用程序。
That is not possible, sorry. They will need to uninstall the old application and install the new one.