title: Keytool Public/Private key pair for Android
body: <p>I'm trying to create a public/private key pair using the keytool function so I can submit an Android app to Google Play. When I try to sign the app using the key I made, I get this error from jarsigner </p>
  
  <pre><code>jarsigner: Certificate chain not found for: SHA1withDSA.  
  SHA1withDSA must reference a valid KeyStore 
  key entry containing a private key and corresponding public key certificate chain.
  </code></pre>
  
  <p>Same thing when I try using RSA. When I look at the keys for the keystore, all I see if the<br>
       Entry type: PrivateKeyEntry</p>
  
  <p>Not the public and private keys. </p>
  
  <p>The command I used to create they key was</p>
  
  <pre><code>keytool -genkey -keystore nameofkeystore.keystore 
  -alias coffitivity -keypass *passwordommitted* -storepass *thepasswordommitted*
  </code></pre>