java - Websphere 7 与 UPS Web 服务集成

标签 java ssl https ups

我正在尝试将我的应用程序与 Websphere 7 中的 UPS Web 服务集成。但它给出了证书链接错误。我该如何解决这个问题?

javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: 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 OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is: 
    java.security.cert.CertPathValidatorException: Certificate chaining error
    at com.ibm.jsse2.o.a(o.java:25)
    at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:499)
    at com.ibm.jsse2.kb.a(kb.java:483)
    at com.ibm.jsse2.kb.a(kb.java:48)
    at com.ibm.jsse2.lb.a(lb.java:426)
    at com.ibm.jsse2.lb.a(lb.java:194)
    at com.ibm.jsse2.kb.s(kb.java:93)
    at com.ibm.jsse2.kb.a(kb.java:128)
    at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:516)
    at com.ibm.jsse2.SSLSocketImpl.h(SSLSocketImpl.java:400)
    at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:787)
    at com.ibm.jsse2.SSLSocketImpl.startHandshake(SSLSocketImpl.java:640)
    at com.ibm.net.ssl.www2.protocol.https.c.afterConnect(c.java:143)
    at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:36)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1026)
    at com.ibm.net.ssl.www2.protocol.https.b.getOutputStream(b.java:69)

最佳答案

Set up UPS web service call works properly with WCS server, we need to install the security certificate for UPS in WCS server.
Start WCS serve.
Start Administration Console by right clicking the server and selecting “Run Administration Console” from Administration Context menu.
From the Administration console window, expend Security and select “SSL certificate and key management”.
Click on “SSL configuration”.
Select “NodeDefaultSSLSetting”.
Click on “Key stores and certificates”.
Select “NodeDefaultTrustStore”.
Click on “Signer certificates”.
Click on “Retrieve from port” button.
Fill in “wwwcie.ups.com” as host and “443” as port.
Click on “OK” button and save.
Restart the WCS server.

关于java - Websphere 7 与 UPS Web 服务集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18054430/

相关文章:

https - 如何在 ring/compojure 中启用 https 和 http->https 重定向

java - Apache Pig 分配和解析计数问题

java - 为什么我无法使用Apache Spark与Hive Metastore连接?

java - 在控制台中打印出 ExamQuestion@143c8b3

python - 一种使用 python MySQLdb 连接器禁用 SSL 的方法

android - 使用 JQuery 和 PhoneGap 时的 SSL 查询

java - 导出到 CSV 时使用什么编码?

ssl - 如何为 WebSphere CE 配置 SSL 服务器身份验证?

wcf - 使用 SSL 和证书对 wcf 的查询很少

apache - 从 Apache VirtualHost 将 HTTPS 永久重定向到 HTTP