You have to create a custom implementation of SSL factory based on
ProtocolSocketFactory interface.

At the init method of the SSL context on that implementation, use a custom
dummy X509TrustManager implementation who has nothing to do in
checkClientTrusted and checkServerTrusted override methods.

Look at the following url to get more info
http://hc.apache.org/httpclient-3.x/sslguide.html

At your test client add this code on the main method (or some after call the
webservice client methods)

Protocol.registerProtocol("https", new Protocol("https", new
DummySSLProtocolSocketFactory(), 443));
TestClient testc = new TestClient();
testc.runTest();

Regards.


Werling, Kristof wrote:
> 
> Hello,
> 
> I wonder how I could accept any certificate in axis2-1.3 when writing a
> web=  client. Any help is very much appreciated.
> 
> Thanks,
> Kristof Werling
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-accept-any-certificate--tp14803272p14804477.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to