I have standalone java application making soap calls to apache. Now we have requirement to disable sslv3,tls1.0 support..So at apache side we have made changes in httpd-ssl.conf to accept only tls1.1 and tls 1.2..
Application is using axis2 libraries for making soap call..version of axis2 is 1.4 and other axis related libraries are of verison 1.6.1.
I am getting below exception when sending post request: Its seem like application is still sending req using protocol tls 1.0 ..Which I feel internally axis2 is using.. How can disable tls1.0 support in axis2 and ask it start sending req using tls 1.1/1.2 only.
Exception : Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
Things tried out:
I have made code level changes for tls 1.2 that is :
SSLContext context = SSLContext.getInstance("TLSv1.2");
Also tried running application with Dhttps.protocols=TLSv1.1,TLSv1.2
- Upgraded axis libraries to version 1.7.1 from 1.6.1 and axis2 root lib i.e axis-1.4.jar replaced it with axis2-1.6.3 as axis2-1.7.1 was not available.