Using TLS v1.1 or 1.2 with RPC Client

Amit Lonkar <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
Hi

Is there a way to set https transport to be TLSv1.1 or TLSv1.2 using the RPCClient? We are using Java 7. 

Exception: Received fatal alert: handshake_failure

With Java 7 even thought TLS1.1 and 1.2 are supported they are not enabled by default. I have tried various ways to enable these but with no luck.

Java 7 Supported Protocols: 5
 SSLv2Hello
 SSLv3
 TLSv1
 TLSv1.1
 TLSv1.2

Enabled Protocols: 1
 TLSv1

Solutions I have tried till now and have not worked:
1. Set -Dhttps.protocols=TLSv1.1,TLSv1.2 on the client.
2. java.lang.System.setProperty("https.protocols", "TLSv1.1");

Thanks
Amit
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.