问题遇到的现象和发生背景
我用 docker 安装的 elasticsearch
我启动各容器服务,发现 elasticsearch 报以下错误
{"type": "server", "timestamp": "2022-06-06T23:36:44,020Z", "level": "ERROR", "component": "o.w.a.d.Monitor", "cluster.name": "elasticsearch", "node.name": "477d2483e622", "message": "remote_ext_dict javax.net.ssl.SSLPeerUnverifiedException: Host name 'ip地址xxxxxxxx' does not match the certificate subject provided by the peer (CN=已配置https域名) error!", "cluster.uuid": "V6dxxaRDQmObhqE1h3_CvQ", "node.id": "NmIfpDbDQEWpH9nUCLSDHQ" }
我通过 nginx 配置 https ,在nginx 中将所有 http 请求 转发为 https
我没有对 es 作 https 配置,我的es 配置还是 http.host: 0.0.0.0
我百度给 es 配置 https ,情况跟我的好像都不一样,我现在不知道如何给 es 添加 https ,解决这报错。