You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by "Braginsky, Leo" <lb...@akamai.com> on 2001/03/28 19:44:52 UTC

Update on SSL communication - still need help!

Hello,

I've been working on and off to establish SSL connection making baby-steps
forward but with no major breakthrough. 

Below is a fragment of my client code:

	private static String urlstr = 
	"https://safari-test.kendall.akamai.com:443/soap/servlet/rpcrouter";

	System.setProperty("javax.net.ssl.trustStore",
	"d:\\jdk1.3.0\\jre\\lib\\security\\cacerts"); 

	System.setProperty("java.protocol.handler.pkgs",
	"com.sun.net.ssl.internal.www.protocol");

	java.security.Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());

        try
        {
            url = new URL (urlstr);
        }
        catch(MalformedURLException e)
        {
            System.err.println("Caught MalformedURLException (" +

                                e.getMessage() + ")" );
            throw e; 
        }
        
        
        try
        {
            resp = call.invoke(url, "");
        }
        catch (SOAPException e)
        {
            System.err.println("Caught SOAPException (" +
                                e.getFaultCode() + "): " +
                                e.getMessage());
            throw e;
        }



Apache Web server can see the incoming message but promptly rejects it. Up
until this morning I thought it due to the lack of "something" on the
server. But our server specialists plugged in the Snoop tool and discovered
that my client is trying to contact the server (which listens on SSL port)
through a clear-text messages. 

Can anyone explain what I am missing in my client code? 

Thanks a lot

- leo