Java8(291)之后 , 禁用了TLS1.1 , 使JDBC无法用SSL连接SqlServer2008怎么办,以下是解决办法
Java/SprintBoot jackxiang 2023-4-19 14:36
brew list java|grep java.security
/usr/local/Cellar/openjdk/18.0.2/libexec/openjdk.jdk/Contents/Home/conf/security/java.security
java无法连接SqlServer 出现安全限制的解决方法(TLS加密被拒绝)
集群mysql:1、改了2个my.cnf wait_timeout=60 ; 与jar配置相同 2、同步了新的数据库3、17.26:8202上的前端指向了集群库Q: 26上连接ssl集群有个异常,Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocolA:修改jre/lib/security/java.security中的jdk.tls.disabledAlgorithms,删除SSLv3, TLSv1, TLSv1.1,然后重启应用即可
/usr/local/jdk8/jre/lib/security/java.security
# jdk.tls.disabledAlgorithms=SSLV3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
来自:https://blog.csdn.net/kfepiza/article/details/119084415
Linux:
pm -ql jdk-1.8.0_66|grep java.security
/usr/local/java/jre/lib/security/java.security
/usr/local/Cellar/openjdk/18.0.2/libexec/openjdk.jdk/Contents/Home/conf/security/java.security
java无法连接SqlServer 出现安全限制的解决方法(TLS加密被拒绝)
集群mysql:1、改了2个my.cnf wait_timeout=60 ; 与jar配置相同 2、同步了新的数据库3、17.26:8202上的前端指向了集群库Q: 26上连接ssl集群有个异常,Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocolA:修改jre/lib/security/java.security中的jdk.tls.disabledAlgorithms,删除SSLv3, TLSv1, TLSv1.1,然后重启应用即可
/usr/local/jdk8/jre/lib/security/java.security
# jdk.tls.disabledAlgorithms=SSLV3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
来自:https://blog.csdn.net/kfepiza/article/details/119084415
Linux:
pm -ql jdk-1.8.0_66|grep java.security
/usr/local/java/jre/lib/security/java.security