2022年2月16日星期三

Enable TLS 1.0 and TLS 1.1 in JAVA 1.8.0_321

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


Find the line similar like this: 

jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \

and remove the TLSv1, TLSv1.1

the line will be like this 

jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, \