TLS 1.2 Configuration on Windows Java

Dear EE,

Need you help to configure TLS 1.2 on windows Java.

1) Which steps i should perform to enable TLS 1.2 on Java installed on Windows 2008 R2 EE?
2) Please help in configuration of TLS 1.2 with step by step.

Thanks
Netsol-NOSAsked:
Who is Participating?
 
Kyle AbrahamsSenior .Net DeveloperCommented:
The dhttps you can use when calling the java program directly.

$ java -Dhttps.protocols=TLSv1.2

Open in new window


More Info:
   https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html

and

https://blogs.oracle.com/java-platform-group/diagnosing-tls,-ssl,-and-https
0
 
Kyle AbrahamsSenior .Net DeveloperCommented:
From:
https://tonyyan.wordpress.com/2015/07/17/enabled-tls-1-2-and-tls-1-1-on-java-7/
(Note on the below I would remove TLSv1 and v1.1, but including it as I'm citing the source.)
-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2

Open in new window



or
System.setProperty(“https.protocols”, “TLSv1,TLSv1.1,TLSv1.2”);

Open in new window

0
 
Netsol-NOSAuthor Commented:
Thanks, Kyle for your quick reply.

Appreciated if you would elaborate it in detail.

Where should i go and open which document to change the settings or enter lines which you have mentioned above.

Thanks
0
 
Netsol-NOSAuthor Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.