从wso2 esb调用HTTPS端点

时间:2012-08-29 06:24:58

标签: web-services security wso2 wso2esb

如何从WSO2 ESB调用HTTPS端点。部署在weblogic服务器上的Web服务受策略保护 Wssp1.2-2007-Https-UsernameToken-Plain.xml WSDL中指定的SOAP地址为
https://172.16.91.21:7102/WLSAMLPack_62_64/CustomAsTAPIOnBuildingSAMLService

当我尝试从WSO2 esb创建端点并访问它时,它会抛出以下错误:

  

[2012-08-29 11:43:49,769]错误 - ClientHandler I / O错误:一般   SSLEngine问题For:172.16.91.21:7102 For Request:Axis2Request   [消息ID:urn:uuid:59ebea16-dcb0-4b25-8074-b78605e2ff55] [状态   完成:false] [Status SendingCompleted:true]   javax.net.ssl.SSLHandshakeException:常见的SSLEngine问题   com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:938)     在   com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:465)     在   com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1064)     在   com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1036)     在javax.net.ssl.SSLEngine.wrap(SSLEngine.java:452)at   org.apache.http.impl.nio.reactor.SSLIOSession.doHandshake(SSLIOSession.java:154)     在   org.apache.http.impl.nio.reactor.SSLIOSession.isAppInputReady(SSLIOSession.java:265)     在   org.apache.http.impl.nio.SSLClientIOEventDispatch.inputReady(SSLClientIOEventDispatch.java:229)     在   org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:158)     在   org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:340)     在   org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:318)     在   org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:278)     在   org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)     在   org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor $ Worker.run(AbstractMultiworkerIOReactor.java:542)     在java.lang.Thread.run(Thread.java:619)引起:   javax.net.ssl.SSLHandshakeException:常见的SSLEngine问题   com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)     在   com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1427)     在   com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:189)     在   com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181)     在   com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1035)     在   com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:124)     在   com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)     在com.sun.net.ssl.internal.ssl.Handshaker $ 1.run(Handshaker.java:458)     在java.security.AccessController.doPrivileged(Native Method)at   com.sun.net.ssl.internal.ssl.Handshaker $ DelegatedTask.run(Handshaker.java:875)     在   org.apache.http.impl.nio.reactor.SSLIOSession.doHandshake(SSLIOSession.java:171)     ... 9更多引起:sun.security.validator.ValidatorException:PKIX   路径构建失败:   sun.security.provider.certpath.SunCertPathBuilderException:无法   找到所请求目标的有效证书路径   sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:285)     在   sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:191)     在sun.security.validator.Validator.validate(Validator.java:218)at   com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)     在   com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)     在   com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)     在   com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1014)     ... 15更多引起:   sun.security.provider.certpath.SunCertPathBuilderException:无法   找到所请求目标的有效证书路径   sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)     在java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)     在   sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:280)     ......还有21个

感谢。 阿都

1 个答案:

答案 0 :(得分:2)

通过以下链接更新了解决方案。 Invoking HTTPS Secured Endpoints using wso2 esb

希望这会有所帮助。 谢谢, 阿卜杜勒。