处理elasticsearch 8修改密码报证书错误

  • Post author:
  • Post category:技术
  • Post comments:0评论

错误

bin/elasticsearch-reset-password --username elastic -i
07:53:48.917 [main] WARN  org.elasticsearch.common.ssl.DiagnosticTrustManager - failed to establish trust with server at [X.X.X.X]; the server provided a certificate with subject name 后面还有巴拉巴拉巴拉巴拉```

处理,增加一个url参数

bin/elasticsearch-reset-password --username elastic -i -url https://127.0.0.1:9200

好了~

参考:

https://discuss.elastic.co/t/persistent-certificateexception-error-on-running-any-of-the-elasticsearch-tools-in-docker/348492/2

0 0 votes
文章评分
订阅
提醒
guest
0 评论
最旧
最新 得票最多