简体   繁体   English

无法找到有效的证书路径

[英]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.

相关问题 无法找到到请求目标的有效证书路径 - unable to find a valid certification path to requested target 构建失败-无法找到有效的认证路径 - Build failed - unable to find valid certification path SunCertPathBuilderException:无法找到到请求目标的有效证书路径 - SunCertPathBuilderException: unable to find valid certification path to requested target Maven:无法找到到请求目标的有效认证路径 - Maven:unable to find valid certification path to requested target Fiddler Java https-“无法找到请求目标的有效证书路径” - Fiddler java https - “unable to find valid certification path to requested target” CertPathBuilderException: 无法找到有效的认证路径是 8.5 网络部署 - CertPathBuilderException: unable to find valid certification path was 8.5 network deployment 解决:SunCertPathBuilderException:无法找到到请求目标的有效证书路径 - Resolving: SunCertPathBuilderException: unable to find valid certification path to requested target Eclipse 无法找到所请求目标的有效认证路径 - Eclipse unable to find valid certification path to requested target 领英(LinkedIn)-无法找到所需目标的有效认证路径 - LinkedIn - unable to find valid certification path to requested target CAS SunCertPathBuilderException: 无法找到请求目标的有效证书路径 - CAS SunCertPathBuilderException:unable to find valid certification path to requested target
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM