【问题标题】:MobileFirst sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetMobileFirst sun.security.provider.certpath.SunCertPathBuilderException:无法找到到所请求目标的有效证书路径
【发布时间】:2017-04-22 21:54:29
【问题描述】:

尝试连接我的应用程序 (IBM Maximo Anywhere) 时,我在 Eclipse 控制台中收到以下错误:

[WARNING ] FWLSE0239W: Authentication failure in realm 'CustomAuthenticationRealm': javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.secur
ity.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [project MaximoAnywhere]

我在 Eclipse 中使用 MobileFirst Studio 7.1。我的后端服务器有一个单一的自签名证书。我已将后端服务器的证书导入机器上的以下密钥库:

C:\Java\jdk1.8.0_102\jre\lib\security\cacerts
C:\Java\jre1.8.0_102\lib\security\cacerts
C:\IBM\Anywhere\MaximoAnywhere\server\conf\default.keystore

我的 MobileFirst Development Server 在 server.xml 文件中有以下密钥库条目:

<keyStore id="defaultKeyStore" password="worklight"/>

我的 worklight.properties 有以下条目:

ssl.keystore.path=conf/default.keystore
ssl.keystore.type=jks
ssl.keystore.password=worklight

我已经使用以下实用程序测试了与后端目标的密钥库连接:SSLPoke 和 Portecle

这两个实用程序都通过端口 443 将上述所有三个密钥库连接到后端目标服务器,没有任何问题。

我想知道是否有人有任何进一步的 cmets 或建议。

【问题讨论】:

  • 我实际上能够解决问题。还需要将证书添加到以下密钥库:C:\Users\Username\workspace\MobileFirstServerConfig\servers\worklight\resources\security\key.jks

标签: eclipse ibm-mobilefirst ssl-certificate maximo-anywhere


【解决方案1】:

来自cmets:

我实际上能够解决问题。还需要将证书添加到以下密钥库:C:\Users\Username\workspace\MobileFirstServerConfig\servers\‌​worklight\resources\‌​security\key.jks

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-01-03
    • 2022-06-14
    • 2016-11-20
    • 2020-06-15
    • 2013-02-03
    • 1970-01-01
    相关资源
    最近更新 更多