I think I just did this to support self-signed certs ... Axis2 uses
the Apache HttpClient instead of the 'normal' Java
HttpURLConnection. You can configure a new 'https' protocol using
the HttpClient API, specifying your own socket factory.
Protocol protocol = new Protocol("https", new LenientSslSocketFactory
(trustManagers), 443);
Protocol.register("https", protocol);
where LenientSslSocketFactory implements the HttpClient interface
SecureProtocolSocketFactory.
er ... SecureProtocolSocketFactory doesn't seem to be related to
javax.net.SocketFactory at all though ...
Aaron.
On 5-Apr-07, at 4:39 PM, Mahesh Rachakonda wrote:
I have been using Axis2 client with default JSSE to create ssl
connections. Now I have a need to use Entrust certificate stores,
so I can provide a JSSE SSLSocketFactory or a socket to Axis2. I am
having a hard time figuring out how to go about it. I see that the
previous versions (Axis) offered the following approach which is no
longer available:
org.apache.axis.AxisProperties.setProperty
("axis.socketSecureFactory", "mypackage.MySSLSocketFactory");
Any help is sincerely appreciated. Thanks!
Mahesh