Jarsigner:找不到以下证书链 [英] Jarsigner: certificate chain not found for

查看:347
本文介绍了Jarsigner:找不到以下证书链的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将证书导入到私有~/.keystore文件中:

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?

推荐答案

似乎您的密钥库仅包含一个证书(公共密钥),您需要一个完整的密钥条目,一个私钥和整个证书链才能使用签署任何东西

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

这篇关于Jarsigner:找不到以下证书链的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆