title: Generate an "expired" SSL certificate with keytool
body: <p>I am creating my keystore with following command:</p>
  
  <pre><code>keytool -genkey -keystore myStore.keystore -keyalg RSA -keysize 1024 -alias myAlias
  </code></pre>
  
  <p>How could I generate one with a past expiry date (the use of this? I want to test the behavior of my app with an expired certificate).</p>