未找到证书链
我正在签署 jar 文件。由 VeriSign 提供的证书。
它提供 2 个证书:aplha-primary.cer
和 aplha-secoandary.cer
我使用以下命令生成密钥库文件:
keytool -importcert -v -alias -primary -keystore keystore/keystore.jks -file aplha-primary.cer
并将
keytool -importcert -v -alias -secoandary -keystore keystore/keystore.jks -file aplha-secoandary.cer
其导出到密钥库文件。
当我尝试签署 jar 文件时,它给出了如下异常
[signjar] jarsigner: Certificate chain not found for: must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain. jarsigner -keystore keystore.jks -storepass **** -keypass ****** Uploader.jar alpha-primary jarsigner: Certificate chain not found for: alpha-primary. alpha-primary must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
I am signing the jar file. The certificate provided by VeriSign.
It provide 2 certificates: aplha-primary.cer
and aplha-secoandary.cer
I generate the keystore file using the following commands:
keytool -importcert -v -alias -primary -keystore keystore/keystore.jks -file aplha-primary.cer
and
keytool -importcert -v -alias -secoandary -keystore keystore/keystore.jks -file aplha-secoandary.cer
It is exported to keystore file.
when I tried to sign the jar file it's giving the exception like
[signjar] jarsigner: Certificate chain not found for: must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain. jarsigner -keystore keystore.jks -storepass **** -keypass ****** Uploader.jar alpha-primary jarsigner: Certificate chain not found for: alpha-primary. alpha-primary must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您丢失了私钥。
使用非对称加密对 jar 进行签名。
证书仅包含公钥。
I think that you are missing the private keys.
For signing of jars is used asymmetrical encryption.
Certificate contains only public key.