title: Jar signing -validity property
body: <p>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</p>
  
  <pre><code> [info] Warning:
   [info] This jar contains entries whose signer certificate will expire within six
   months.
  </code></pre>
  
  <p>I am using the following commands,</p>
  
  <pre><code>keytool -genkey -alias signFiles -keypass mypass  -keystore mystore -storepass mypass-alias store -validity 365
  keytool -selfcert -keystore mystore -alias store
  </code></pre>
  
  <p>Am I doing something wrong here? Actually I wanted to sign the jar with a certificate for 1 year.</p>
  
  <p>Cheers,
  J</p>