开发者

Jar signing -validity property

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜