当前位置:编程学习 > 网站相关 >>

WENSPHERE下调用WEBSERVICE出错

--------------------编程问答-------------------- 现在发现系统中有两处验证
1处是LDAP验证
System.setProperty("javax.net.ssl.trustStore", “导入JDK之后生产的验证证书”);

2 另外一处是axis2.0 使用HTTPS调用webservice
System.setProperty("javax.net.ssl.keyStore", “对方提供的JKS文件”); 
System.setProperty ("javax.net.ssl.keyStorePassword", “对方提供的密码”);

如果先启动 1 LDAP验证 那么1会验证成功,那么验证2的时候报 org.apache.axis2.AxisFault: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: 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 O=Citigroup QACA1, C=US is not trusted; internal cause is:

  java.security.cert.CertPathValidatorException: Certificate chaining error

如果先启动2 验证 2验证也会成功,那么验证1的时候报 
org.apache.axis2.AxisFault: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: 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 O=Citigroup QACA1, C=US is not trusted; internal cause is:

  java.security.cert.CertPathValidatorException: Certificate chaining error

请赐教大家
补充:企业软件 ,  WebSphere
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,