zoukankan      html  css  js  c++  java
  • elasticsearch7.2.1 报错 Received fatal alert: handshake_failure

    报错信息
    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 了!

    改行去放羊
  • 相关阅读:
    图的深度遍历
    数据结构实验图论一:基于邻接矩阵的广度优先搜索遍历

    满汉全席
    2-sat(模板)
    2-sat
    花匠
    维护序列NOI2005
    序列终结者
    杨辉三角
  • 原文地址:https://www.cnblogs.com/musen/p/13595225.html
Copyright © 2011-2022 走看看