如何将.cer和.p7b导入到tomcat中的密钥库

时间:2019-05-27 16:59:43

标签: import ssl-certificate keytool

我有2个证书: certnew.cer certnew.p7b

我想将这些证书正确导入到我在keytool中创建的keystore -fico-中。使用此命令:

keytool -importcert -alias embargo -trustcacerts -file ..\jre\lib\security\certnew.p7b -keystore ..\jre\lib\security\fico.jks

但是我收到一条错误消息:输入的不是X.509证书。

导入后,我必须激活server.xml中的端口8443:

<Connector port = "8443" protocol = "org.apache.coyote.http11.Http11Protocol"
maxThreads = "200" SSLEnabled = "true" scheme = "https" secure = "true"
keystoreFile = "C: \ Program Files \ Java \ jdk1.7.0_04 \ jre \ lib \ security \ fico.jks"
keyPass = "changeit"
clientAuth = "false" sslProtocol = "TLS" />

如何正确导入?

0 个答案:

没有答案