title: How to create an Android keystore RSA key with infinite validity?
body: <p>Here is <a href="http://developer.android.com/tools/publishing/app-signing.html#cert" rel="noreferrer">how Google suggests creating an Android keystore</a>:</p>
  
  <pre><code>keytool -genkey -v -keystore my-release-key.keystore -alias alias_name \
    -keyalg RSA -keysize 2048 -validity 10000
  </code></pre>
  
  <p>While 10000 days may seem like eternity, 27 years could pass quicker than you think, and RSA might still be in use.<br>
  If tweaking a command-line argument now has a 0.01% chance of saving my market share in the future, I am willing to do it.</p>
  
  <p><strong>QUESTION:</strong> How to make this validity period as long as possible?</p>