Having trouble passing SSL traffic

126 views
Skip to first unread message

bble...@clarityssi.com

unread,
Aug 9, 2013, 2:26:18 PM8/9/13
to membrane...@googlegroups.com
Hello,

    I have a web service that's using apache cxf with SSL between a local java client and local apache web server.  I've modified the client to use ports 2000 and 2020.

    I think i've got the monitor configured correctly (please see below), but the client is returning with the following and I see no ssl traffic?

             'Remote host closed connection during handshake'

    Any help would be greatly appreciated!!!!

<?xml version = "1.0" ?>
<proxies>
  <serviceProxy name=""
                 port="2000">
    <target host="localhost"
             port="8090" />
  </serviceProxy>
  <serviceProxy name="* * .*:2020"
                 port="2020"
                 inboundTLS="true"
                 outboundTLS="true">
    <target host="localhost"
             port="8443" />
  </serviceProxy>
  <global>
    <router adjustHostHeader="true"
             adjustContentLength="true" />
    <monitor-gui indentMessage="true"
                  autoTrack="false" />
    <proxyConfiguration active="false"
                         authentication="false"
                         host=""
                         port="0"
                         password=""
                         username="" />
    <security>
      <keystore location="C:\Users\Owner\keystore.key"
                 password="mypassword" />
      <truststore location="C:\Users\Owner\keystore.key"
                   password="mypassword" />
    </security>
  </global>
</proxies>

Thomas Bayer

unread,
Aug 10, 2013, 12:56:19 PM8/10/13
to membrane...@googlegroups.com, bble...@clarityssi.com
Hi,
to help you I need a bit more of debug information. Could you edit the file memrouter.bat or serviceproxy.bat that you use to startup Membrane. Then add

-Djavax.net.debug=all

to the last line like this:


java -Djavax.net.debug=all  -classpath "%CLASSPATH%" com.predic8.membrane.core.Starter %1 %2 %3 %4 %5 %6 %7 %8 %9


Then try it again and have a look at the debug output. Of course you can also post the debug output here. But be careful not to expose critical information.

--
Thomas

mismai...@gmail.com

unread,
Oct 23, 2013, 9:51:11 AM10/23/13
to membrane...@googlegroups.com, bble...@clarityssi.com
In code all port replaced to http so nothing https works.

You can change in the code

SOAPProxy.java

parseWSDL method

add after

if (key.getPath() == null) {
                                        key.setUsePathPattern(true);
                                        key.setPathRegExp(false);
                                        key.setPath(url.getPath());
                                } else {
                                        targetPath = url.getPath();
                                }
---- add--------
if(location.contains("https")){
                                    SSLParser sslOutboundParser = new SSLParser();
                                    target.setSslParser(sslOutboundParser);
                                }
-----add------------
((ServiceProxyKey)key).setMethod("*");
Reply all
Reply to author
Forward
0 new messages