码迷,mamicode.com
首页 > 其他好文 > 详细

elasticsearch7.2.1 报错 Received fatal alert: handshake_failure

时间:2020-09-14 19:01:43      阅读:76      评论:0      收藏:0      [点我收藏+]

标签:x-pack   ide   data   and   uid   pch   disco   discovery   message   

报错信息
master 报错日志信息 :elastic ssl.SSLHandshakeException: no cipher suites in common
node 节点报错日志信息 :[2020-08-28T03:51:07,537][WARN ][o.e.t.OutboundHandler    ] [elasticsearch-data-0] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:40314, remoteAddress=elasticsearch-discovery/10.107.243.185:9300}]
javax.net.ssl.SSLException: Received fatal alert: handshake_failure

报的是ssl 错误,原因没有证书,es 使用x-pack启用了 ssl需生成证书, 制作证书参考下面网址
https://www.elastic.co/guide/en/elasticsearch/reference/6.3/configuring-tls.html#node-certificates

制作证书
bin/elasticsearch-certutil ca
bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12
将以下配置添加到配置文件
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type
xpack.security.enabled: true
xpack.license.self_generated.type: basic
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12

配置证书到配置文件重启就ok 了!

elasticsearch7.2.1 报错 Received fatal alert: handshake_failure

标签:x-pack   ide   data   and   uid   pch   disco   discovery   message   

原文地址:https://www.cnblogs.com/musen/p/13595225.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!