Jar 签名 -validity 属性

发布于 2024-11-28 22:27:05 字数 455 浏览 1 评论 0原文

我使用 keytool 的 -validity 属性生成密钥库并对 jar 进行自签名。在此过程中,我看到调试消息说

 [info] Warning:
 [info] This jar contains entries whose signer certificate will expire within six
 months.

我正在使用以下命令,

keytool -genkey -alias signFiles -keypass mypass  -keystore mystore -storepass mypass-alias store -validity 365
keytool -selfcert -keystore mystore -alias store

我在这里做错了什么吗?实际上我想用证书签署该罐子一年。

干杯, J

I used the -validity property of the keytool to generate a keystore and self sign a jar. During the process, I saw the debug message that says

 [info] Warning:
 [info] This jar contains entries whose signer certificate will expire within six
 months.

I am using the following commands,

keytool -genkey -alias signFiles -keypass mypass  -keystore mystore -storepass mypass-alias store -validity 365
keytool -selfcert -keystore mystore -alias store

Am I doing something wrong here? Actually I wanted to sign the jar with a certificate for 1 year.

Cheers,
J

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

夜灵血窟げ 2024-12-05 22:27:05

-validity 365 添加到 -selfcert 命令中。

Add -validity 365 to your -selfcert command.

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