[英]unable to find valid certification path
I have created a certificate in my system using this command:我使用以下命令在我的系统中创建了一个证书:
keytool -export -file test.cert -keystore test -storepass 123456 -alias sriram
Ans: Certificate stored in file <test.cert>.
I have imported this certificate in cacerts of new system using the command:我使用以下命令将此证书导入到新系统的 cacerts 中:
keytool -importcert -trustcacerts -file "path-to-public-cert" -keystore JAVA_HOME/jre/lib/security/cacerts".
The output is something like this:Trust this certificate? [no]: yes Certificate was added to keystore.
But still I am getting the link error when I run my jar file in new system...Where I went wrong??但是当我在新系统中运行我的 jar 文件时,我仍然收到链接错误...我哪里出错了??
Try to read the Apache Tomcat SSL Configuration How-To .尝试阅读 Apache Tomcat SSL 配置指南。
In Edit the Tomcat Configuration File paragraph it explain that you can had the keystoreFile
attribute to the connector configuration.在编辑 Tomcat 配置文件段落中,它解释了您可以将
keystoreFile
属性添加到连接器配置中。
<Connector
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="${user.home}/.keystore" keystorePass="changeit"
clientAuth="false" sslProtocol="TLS"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.