title: Certificate chain not found, how to fix and publish to Google Play Store?
body: <p><strong>ERROR MESSAGE</strong>:</p>
  
  <pre class="lang-none prettyprint-override"><code>jarsigner: Certificate chain not found for: project_foo.&lt;br/&gt;
  project_foo must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
  </code></pre>
  
  <p><strong>QUESTION</strong>:
  How do I include a public key certificate chain to address the error?</p>
  
  <p><strong>BACKGROUND</strong>:
  The App Developer has completed an Android app and delivered an unsigned APK called Foo.apk. My objective is to sign and zipalign the APK in preparation for uploading it to the Google Play store. My keystore is located at C:\Path\.keystore on a Windows machine.</p>
  
  <p><strong>COMMAND LINE</strong>, my command:<br/></p>
  
  <pre class="lang-none prettyprint-override"><code>jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore C:\Path\\.keystore Foo.apk project_foo
  </code></pre>
  
  <p><strong>COMMAND LINE</strong>, response:<br/></p>
  
  <pre class="lang-none prettyprint-override"><code>Enter Passphrase for keystore:
  jarsigner: Certificate chain not found for: project_foo.&lt;br/&gt;
  project_foo must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
  </code></pre>
  
  <p><strong>ALSO TRIED</strong>:
  Verified that I remember the correct password. Using 'keytool -list' from the command line shows me the expected list (it includes one private key).</p>
  
  <p><strong>PREVIOUS OS QUESTION</strong>: <a href="https://stackoverflow.com/questions/5259263/certificate-chain-not-found">certificate chain not found</a> asked using a <code>.cer</code> file from Verisign. I have no similar file available.</p>
  
  <p><strong>OTHER INFORMATION</strong>: Windows 7 machine, using standard Windows command prompt.</p>