查找 Android 密钥库的到期日期

发布于 2025-01-05 16:52:27 字数 84 浏览 2 评论 0原文

我不久前为我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

疧_╮線 2025-01-12 16:52:27

您可以使用 jdk 中的 keytool 来获取证书信息。像这样的命令应该可以工作

keytool -list -v -keystore keystore.jks -alias mydomain

替换

'keystore.jks' with your keystore name
'mydomain' with your alias name

You can use the keytool from the jdk to get certificate info. A command like this should work

keytool -list -v -keystore keystore.jks -alias mydomain

Replace

'keystore.jks' with your keystore name
'mydomain' with your alias name
流星番茄 2025-01-12 16:52:27

当您从 Eclipse 中的 ADT 导出签名的 APK 文件时(假设您正在 Eclipse 中工作),导出 Android 应用程序 对话框会显示密钥库到期日期;

导出显示密钥库到期日期的 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;

Export Android Application showing the expiry date of keystore

殤城〤 2025-01-12 16:52:27

在您的 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: ...."

月竹挽风 2025-01-12 16:52:27

转到密钥库路径并输入以下代码

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文