title: How can I make elasticsearch-setup-passwords work for self signed certificate?
body: <p>I deploy Elasticsearch 7.15 on K8S with default configuration. After launching the cluster, I need to setup the username password by running <code>bin/elasticsearch-setup-passwords</code>. But it gives me this error:</p>
  <pre><code>SSL connection to https://10.0.2.26:9200/_security/_authenticate?pretty failed: No subject alternative names matching IP address 10.0.2.26 found
  Please check the elasticsearch SSL settings under xpack.security.http.ssl.
  </code></pre>
  <p>since the certificate is self signed. How can I setup the configuration to support this? Or is there a way to skip the certificate check?</p>