错误
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
好了~