title: Jarsigner: certificate chain not found for
body: <p>I have imported a certificate into a private <code>~/.keystore</code> file:</p>
  
  <pre><code>keytool -list
  Enter keystore password:
  
  Keystore type: JKS
  Keystore provider: SUN
  
  Your keystore contains 1 entry
  
  mylyn-mantis, Jul 15, 2010, trustedCertEntry
  </code></pre>
  
  <p>and am trying to sign a jar with it, but I get a 'certificate chain not found' error.</p>
  
  <pre><code>jarsigner -verbose  /home/robert/file.jar mylyn-mantis
  jarsigner: Certificate chain not found for: mylyn-mantis.  mylyn-mantis must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
  </code></pre>
  
  <p>How can I solve this problem?</p>