I am using axis on java
to consume a webservice
. The web service is in https, and I want to avoid the the check for certificate. I found in this forum a solution that tell to put this on my code :
AxisProperties.setProperty("axis.socketSecureFactory","org.apache.axis.components.net.SunFakeTrustSocketFactory");
I tried it but with no success. I have enabled : System.setProperty("javax.net.debug", "all");
and I see this in the begining of the log:
trigger seeding of SecureRandom
done seeding SecureRandom
%% No cached client session
*** ClientHello, TLSv1 ......
And in the end it gives an error :
main, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
Am I missing something?