title: Android release keystore issue: "Keystore was tampered with, or password was incorrect"
body: <p>A couple of months ago I generated my android release keystore with this command:</p>
  
  <pre><code>keytool -genkey -v -keystore my-release-key.keystore -alias myalias -keyalg RSA -keysize 2048 -validity 10000
  </code></pre>
  
  <p>I entered a password for the keystore and wrote it down, in the last step, when it was time to enter a password for the certificate I pressed enter to use the same password as the keystore (so I had to remember only one password for the whole process).</p>
  
  <p>After generating this keystore I signed my apk for release using this command:</p>
  
  <pre><code>jarsigner -verbose -keystore my-release-key.keystore my.apk myalias
  </code></pre>
  
  <p>where I entered my password (no problem).</p>
  
  <p>Now I have to push an update to my apk in the market and when I try to sign the new apk using the command above I get a "Keystore was tampered with, or password was incorrect".</p>
  
  <p>I'm puzzled, I went back to my keystore backup and I get the same problem. I'm sure the password is correct. Note that I'm not using Eclipse at all for the process (I'm signing from the command line).</p>
  
  <p>What could be the problem here? Heeelppp!!</p>