开发者

Jar signing -validity property

开发者 https://www.devze.com 2023-03-26 19:55 出处:网络
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

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 m开发者_开发问答ystore -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


Add -validity 365 to your -selfcert command.

0

精彩评论

暂无评论...
验证码 换一张
取 消