cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Custom SSLSocketFactory
Date Wed, 19 Mar 2014 02:10:27 GMT

If you take a look at the code of HttpsURLConnection.HttpsURLConnection(), you should be
able to see the you can pass the SSLSocketFactory throw the TlsParameter.

Here is the code snippet to setup the TlsParameter on the HTTPConduit

 // Get the HttpConduit
 HttpConduit httpConduit = (HttpConduit) ClientProxy.getClient(port).getConduit();

 TLSClientParameters tlsCP = new TLSClientParameters();
 // you can set up the SSLSocketFactory on the TLSClientParameter

 // setup the TLSClientParameters on the HttpConduit


Willem Jiang

Red Hat, Inc.
Blog: (English) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On March 19, 2014 at 5:29:37 AM, rn@dev ( wrote:
> Hi,
> I m trying to create custom SSLSocketFactory and set in the conduit
> programmatically, but for some reason it never get ticked well, and the only
> way it works so far is setting in
> HttpsURLConnection.setDefaultSSLSocketFactory() and using
> useHttpsURLConnectionDefaultSslSocketFactory="true" .
> Can some one please shed some light on this issue? I really wanted to make
> it work in the cxf way, ie setting in the TlsParameter of conduit.
> Thanks
> --
> View this message in context:
> Sent from the cxf-user mailing list archive at

View raw message