查找 Android 密钥库的到期日期
我不久前为我的 Android 应用程序制作了一个密钥库,但我不记得我设置的有效期是多长时间。
有没有办法查明密钥库的有效期限是多长时间?
I made a keystore a while ago for my Android apps but I can't remember how long I set the validity for.
Is there a way to find out how long the keystore is good for?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以使用 jdk 中的 keytool 来获取证书信息。像这样的命令应该可以工作
替换
You can use the keytool from the jdk to get certificate info. A command like this should work
Replace
当您从 Eclipse 中的 ADT 导出签名的 APK 文件时(假设您正在 Eclipse 中工作),
导出 Android 应用程序
对话框会显示密钥库到期日期;When you export a signed APK file from the ADT in Eclipse (assuming you are working in Eclipse), the
Export Android Application
dialog shows the keystore expiry date;在您的 android studio 终端上或从 gradle 脚本选择(右上角,单击 gradle 图标并运行脚本)运行命令 gradlesigningReport 完成后,您可以在每个键后看到一条消息,例如“有效期至:...” ”
On your android studio terminal or from the gradle script selection (right top, click on gradle icon and run a script) run the command gradle signingReport After the completion, you can see after every key a message like "Valid until: ...."
转到密钥库路径并输入以下代码
keytool -list -v -alias 别名名称 -keystore keystoreName.keystore -storepass 密码
Goto the keystore path and enter the below code
keytool -list -v -alias aliasName -keystore keystoreName.keystore -storepass password