【问题标题】:unable to find valid certification path找不到有效的认证路径
【发布时间】:2012-04-21 19:01:02
【问题描述】:

我已经使用这个命令在我的系统中创建了一个证书:

keytool -export -file test.cert -keystore test -storepass 123456 -alias sriram 
Ans: Certificate stored in file <test.cert>.

我已使用以下命令将此证书导入新系统的 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.

但是当我在新系统中运行我的 jar 文件时,我仍然收到 link 错误...我哪里出错了??

【问题讨论】:

  • 您是否在您的tomcat中正确添加了证书配置?你能告诉我关于 ssl 的 tomcat server.xml 吗?
  • stackoverflow.com/questions/2290570/…这个链接可能对你有帮助
  • link..这是在我的系统(服务器)中
  • @linuxeasy:你可以通过这个basic problem..这样你就可以更好地了解我的问题......
  • link 尝试匹配配置,即使我正在经历同样的错误。也尝试按照these 的步骤,直到认证创建和 apache 配置,忽略 CAS 的东西。也许它会帮助你

标签: java https war executable-jar


【解决方案1】:

尝试阅读 Apache Tomcat SSL Configuration How-To

Edit the Tomcat Configuration File 段落中说明您可以将keystoreFile 属性添加到连接器配置中。

<Connector 
           port="8443" maxThreads="200"
           scheme="https" secure="true" SSLEnabled="true"
           keystoreFile="${user.home}/.keystore" keystorePass="changeit"
           clientAuth="false" sslProtocol="TLS"/>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-04
    • 2015-02-13
    • 2019-10-15
    • 2021-06-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多