Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jarsigner: certificate chain not found for

Tags:

I have imported a certificate into a private ~/.keystore file:

keytool -list Enter keystore password:  Keystore type: JKS Keystore provider: SUN  Your keystore contains 1 entry  mylyn-mantis, Jul 15, 2010, trustedCertEntry 

and am trying to sign a jar with it, but I get a 'certificate chain not found' error.

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. 

How can I solve this problem?

like image 823
Robert Munteanu Avatar asked Jul 15 '10 13:07

Robert Munteanu


1 Answers

It seems that your keystore contains only a certificate (public key) you need a complete key entry, with a private key, and the whole certificate chain to be able to sign anything

like image 102
Maurice Perry Avatar answered Sep 23 '22 17:09

Maurice Perry