我已将证书导入私人文件 ~/.keystore
文件:
keytool -list
Enter keystore password:
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 1 entry
mylyn-mantis, Jul 15, 2010, trustedCertEntry
并试图用它签署一个 jar,但我收到“未找到证书链”错误。
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.
我怎么解决这个问题?
原文由 Robert Munteanu 发布,翻译遵循 CC BY-SA 4.0 许可协议
似乎您的密钥库只包含一个证书(公钥)您需要一个完整的密钥条目,一个私钥和整个证书链才能签署任何东西