Logstash连接sqlserver: The server selected protocol version TLS10 is not accepted by client preference
Posted AngusC·
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Logstash连接sqlserver: The server selected protocol version TLS10 is not accepted by client preference相关的知识,希望对你有一定的参考价值。
Logstash连接sqlserver: The server selected protocol version TLS10 is not accepted by client preferences [TLS12]
想通过logstash 导入 sqlserver的数据到es但是报了如下的错误:
The server selected protocol version TLS10 is not accepted by client preferences [TLS12]
logstash:7.13.2
原因:
jdk高版本禁用TLS 1.0和1.1
解决办法:
进入JDK找到java-8-openjdk/jre/lib/security下的java.security,打开注释掉
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
jdk11也一样,已经验证通过
便可解决问题。
以上是关于Logstash连接sqlserver: The server selected protocol version TLS10 is not accepted by client preference的主要内容,如果未能解决你的问题,请参考以下文章
Logstash连接sqlserver: The server selected protocol version TLS10 is not accepted by client preference
Logstash连接sqlserver: The server selected protocol version TLS10 is not accepted by client preference
sqlserver2014连接JAVA: The server selected protocol version TLS10 is not accepted by client preference