证书链导入后私钥不存在
Private Key not present after certificates chain importation
我已经按照我的 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
然后就不行了,不知道怎么解决。
有人可以帮我解决吗?
提前致谢。
您必须使用生成密钥对和 CSR 时使用的相同别名导入签名证书。否则它们没有关联。
我已经按照我的 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
然后就不行了,不知道怎么解决。
有人可以帮我解决吗?
提前致谢。
您必须使用生成密钥对和 CSR 时使用的相同别名导入签名证书。否则它们没有关联。