title: How Do I Create A Certificate For My Android Market APK?
body: <p>I want to upload my first APK/app to the Android Market, but I got this error (which did not lead me to the correct link when searched for in stackoverflow, by the way).</p>
  
  <p><strong>Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years.
  Market requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate.</strong></p>
  
  <p>Though it turns out <a href="https://stackoverflow.com/questions/3853140/android-market-error-while-uploading-apk-file">this question</a> is similar, the guy just says "Oh, you reminded me of how to do it" without actually explaining.  I've looked at the website referred to in the "answer", but here's my problem:</p>
  
  <ul>
  <li>I don't know where my keytool tool is.  The <a href="http://developer.android.com/guide/publishing/app-signing.html#cert" rel="nofollow noreferrer">Android site</a> is pretty vague; I don't see "keytool" of any sort in my ..\android-sdk-windows\tools directory.</li>
  <li>I think I've done this before, but I wish I had a set of steps that is like "Open up a command prompt, navigate to the directory where keytool is, enter in command 'xyz -flagsforxyz', and then point to the keystore from the 'export release apk' option in Eclipse"... or something similar.</li>
  </ul>
  
  <p>I hope you can tell that I've tried a few things already!  I might just be overlooking something simple -- so it's time for the steps to be recorded in stackoverflow!  Thanks for your help. </p>