title: To change jar expiry time
body: <p>I need to change expiry date of jar being signed by a certificate to say 30 days. Hence I execute in sequence (I provide relevant inputs for the first command). But in-spite of the -validity option being given as 30 days, the jarsigner command says the certificate expires after 6 months(which is default). How can I change this any idea ? Below is the list of commands i use</p>
  
  <pre><code>keytool -genkey -keystore test -alias testAlias -validity 30 &lt;br&gt;
  keytool -selfcert -alias testAlias -keystore test &lt;br&gt;
  jarsigner -keystore "C:\test" "C:\some.jar" testAlias
  </code></pre>