javax.net.ssl.SSLHandshakeException错误

时间:2013-05-03 09:14:46

标签: ssl service axis2

在我们的应用程序中,我们使用https服务URL从其他供应商处获得一些服务。我们都与一台服务器共享。此服务器与服务URL交互并获取信息。  在所有其他系统中,可以通过服务器到服务URL的成功请求和响应成功调用服务。

在我的系统中显示以下错误。

我认为这是因为我需要做的浏览器设置才能成功调用请求。

任何人都可以对此提出建议......

org.apache.axis2.AxisFault: 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

java.security.cert.CertPathValidatorException: Certificate chaining error
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:83)
    at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)

1 个答案:

答案 0 :(得分:0)

您的Truststore未正确构建。请验证您的信任库是否具有已签署服务器证书的所有中间和根CA证书。