证书链输入后不存在私钥

时间:2015-09-04 21:29:52

标签: ssl certificate private-key

我已经安装了四个证书,因为我的CA建议我,但是一旦我列出证书,就会显示任何私钥:

keytool -list -keystore ertstore02.keystore -storepass pass4certstore02

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 4 entries

root, Sep 4, 2015, trustedCertEntry,
Certificate fingerprint (SHA1):  XX:XX:X:XX
latiendamiga.com, Sep 4, 2015, trustedCertEntry,
Certificate fingerprint (SHA1):  XX:XX:X:XX
intermed, Sep 4, 2015, trustedCertEntry,
Certificate fingerprint (SHA1):  XX:XX:X:XX
root_01, Sep 4, 2015, trustedCertEntry,
Certificate fingerprint (SHA1):  XX:XX:X:XX

安装执行如下:

keytool -import -trustcacerts -keystore certstore02.keystore -alias root -file gd-class2-root.crt -storepass pass4certstore02
keytool -import -trustcacerts -keystore certstore02.keystore -alias root_01 -file gdroot-g2_cross.crt -storepass pass4certstore02
keytool -import -trustcacerts -keystore certstore02.keystore -alias intermed -file gdig2.crt -storepass pass4certstore02
keytool -import -trustcacerts -keystore certstore02.keystore -alias latiendamiga.com -file certissues4me.crt -storepass pass4certstore02

然后它不起作用,我不知道如何解决它。

有人可以帮我解决吗?

提前致谢。

1 个答案:

答案 0 :(得分:0)

您必须使用生成密钥对和CSR时使用的相同别名导入签名证书。否则他们没有关联。