Sidebar

How to re-enable TLSv1 and TLSv1.1 in Java 8?

0 votes
37.4K views
asked May 24, 2021 by brandon-w-8204 (33,270 points)
With this latest Java 8 release, TLSv1 and TLSv1.1 are disabled by default in the java.security file. How do I re-enable those protocols?

1 Answer

+1 vote

1. Edit the JRE_HOME/lib/security/java.security file (Example: C:\program files\java\lib\security\java.security). 

2. Search the file for 'jdk.tls.disabledAlgorithms' and you will find a line that has the disabled protocols, and you will see that TLSv1 and TLSv1.1 are in the list.  

Example:

jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
include jdk.disabled.namedCurves

3. Remove one or both of them from the disabled protocols line, then you can restart QIE and it will be able to use the older protocols again.

Example with TLSv1.1 removed:

jdk.tls.disabledAlgorithms=SSLv3, TLSv1, RC4, DES, MD5withRSA, \
DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
include jdk.disabled.namedCurves
answered May 24, 2021 by brandon-w-8204 (33,270 points)
...