我尝试通过Websphere中的httpcomponents访问具有NTLM身份验证的休息服务。
我收到以下错误:
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R Caused by: com.ibm.jsse2.util.n: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by EMAILADDRESS=middleware@aaa.com, CN=AAA2-CA2A, OU=Security, O=AAA, L=Location, ST=YY, C=CO is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.jsse2.util.l.a(l.java:65)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.jsse2.util.l.b(l.java:92)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.jsse2.util.k.a(k.java:5)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.jsse2.rc.a(rc.java:91)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.jsse2.rc.a(rc.java:69)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.jsse2.rc.checkServerTrusted(rc.java:6)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.jsse2.rc.b(rc.java:11)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.jsse2.mb.a(mb.java:646)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R ... 116 more
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R Caused by: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by EMAILADDRESS=middleware@aaa.com, CN=AAA2-CA2A, OU=Security, O=AAA, L=Location, ST=YY, C=CO is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:411)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:258)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.jsse2.util.l.a(l.java:137)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R ... 123 more
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R Caused by: java.security.cert.CertPathValidatorException: The certificate issued by EMAILADDRESS=middleware@aaa.com, CN=AAA2-CA2A, OU=Security, O=AAA, L=Location, ST=YY, C=CO is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.security.cert.BasicChecker.<init>(BasicChecker.java:111)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.security.cert.PKIXCertPathValidatorImpl.engineValidate(PKIXCertPathValidatorImpl.java:180)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.myValidator(PKIXCertPathBuilderImpl.java:737)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:649)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:357)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R ... 125 more
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R Caused by: java.security.cert.CertPathValidatorException: Certificate chaining error
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.security.cert.CertPathUtil.findIssuer(CertPathUtil.java:317)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R at com.ibm.security.cert.BasicChecker.<init>(BasicChecker.java:108)
[08.02.18 16:18:37:213 CET] 0000002f SystemErr R ... 129 more
我已将证书导入:
安全&gt; SSL证书和密钥管理&gt;密钥库和证书&gt; NodeDefaultTrustStore&gt;签名者证书
我也尝试导入根证书,但我无法摆脱错误!!!