使用将来会过期的证书签署 Android APK

编程入门 行业动态 更新时间:2024-10-28 08:17:00
本文介绍了使用将来会过期的证书签署 Android APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经使用 phonegap 构建了一个 android 应用程序.我现在正在尝试在 Play 商店中获取此内容,但不断收到以下错误

I have built an android app using phonegap build. I am now trying to get this on the play store but keep getting the following error

You uploaded an APK signed with a certificate that expires too soon. You need to sign your APK with a certificate that expires farther into the future

我已经使用 java jdk1.8.0 keytool 创建了签名密钥,并且我已经使用了这个代码

I have created the signing key with java jdk1.8.0 keytool and I have used this code

keytool.exe -genkey -v -keystore release.keystore -alias TicTacToe -keyalg RSA -keysize 2048 -validity 10000

我不明白.据我所知,我将日期设置为 10,000 天后,这应该足够了吗?

I don't understand. As far as I can tell I am setting the date 10,000 days from now which should be plenty?

推荐答案

设置有效期大于50年.

Set expiration to be greater than 50 years.

-validity 20000

更多推荐

使用将来会过期的证书签署 Android APK

本文发布于:2023-11-23 14:32:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621788.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:将来   证书   APK   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!