导入证书作为PrivateKeyEntry [英] Import certificate as PrivateKeyEntry
本文介绍了导入证书作为PrivateKeyEntry的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I am installing SSL on a Tomcat server and am following these instructions from the issuer https://knowledge.rapidssl.com/support/ssl-certificate-support/index?page=content&actp=CROSSLINK&id=SO16181 and it states:
Verify the following information:
The SSL certificate is imported into the alias with the "Entry Type" of
PrivateKeyEntry or KeyEntry. If not, please import the certificate into
the Private Key alias.
当我导入证书(tomcat)时,我正在使用:
When I import the certificate (tomcat) I am using:
keytool -import -trustcacerts -alias your_alias_name -keystore your_keystore_filename
-file your_certificate_filename
但是当我这样做时,它会导入为trustCertEntry
but when I do so it imports as trustCertEntry
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 3 entries
primaryca, Jul 26, 2014, trustedCertEntry,
Certificate fingerprint (SHA1): <snip>
tomcat, Jul 26, 2014, trustedCertEntry,
Certificate fingerprint (SHA1): <snip>
secondaryca, Jul 26, 2014, trustedCertEntry,
Certificate fingerprint (SHA1): <snip>
如何使tomcat别名作为PrivateKeyEntry导入?
How can I make alias tomcat import as PrivateKeyEntry?
推荐答案
摆脱-trustcacerts
选项.这不是CA证书.这是您的证书.并使用私钥已经拥有的别名.
Get rid of the -trustcacerts
option. It isn't a CA certificate. It's your certificate. And use the same alias the private key already had.
这篇关于导入证书作为PrivateKeyEntry的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文