# SSL error while setting up passwords

**URL:** <https://discuss.elastic.co/t/ssl-error-while-setting-up-passwords/212509>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security, docker\
**Created:** [December 19, 2019, 3:23pm UTC](https://discuss.elastic.co/t/ssl-error-while-setting-up-passwords/212509 "2019-12-19T15:23:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajat\_badjatya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajat_badjatya/32/57104_2.png) [@rajat\_badjatya](https://discuss.elastic.co/u/rajat_badjatya)\
**Post date:** [December 19, 2019, 3:23pm UTC](https://discuss.elastic.co/t/ssl-error-while-setting-up-passwords/212509/1 "2019-12-19T15:23:31Z")

</div>

I have followed this elastic [blog](https://www.elastic.co/blog/configuring-ssl-tls-and-https-to-secure-elasticsearch-kibana-beats-and-logstash) for configuring SSL in the elastic stack and tried using verification mode as `certificate` as well as `none` in elastic's configuration YAML but when I am trying to set up a password using xpack I am getting this error

```
SSL connection to https://192.168.236.98:9200/_security/_authenticate?pretty failed: No subject alternative names matching IP address 192.168.236.98 found
Please check the elasticsearch SSL settings under xpack.security.http.ssl.

```

The IP mentioned in the above error is my master pod IP. While generating ther certs I have given service dns name but `xpack` utiilty `elasticsearch-setup-passwords` is looking for pod IP instead of service DNS(elasticsearch-master.elk.svc.cluster.local).

I would be glad if someone could guide me and answer my following queries:

1. How can I add pod IP in `Subject Alternative Names` as pod IP is not known before the deployment?
2. Why verification mode `none` is not working as mentioned in the documentation:

> `none` , which performs _no verification_ of the server’s certificate.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [December 20, 2019, 6:19am UTC](https://discuss.elastic.co/t/ssl-error-while-setting-up-passwords/212509/2 "2019-12-20T06:19:55Z")

</div>

Please provide a copy of your elasticsearch configuration.  
The more guesses we have to make, the less likely it is that we will give you the correct answer.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 17, 2020, 6:19am UTC](https://discuss.elastic.co/t/ssl-error-while-setting-up-passwords/212509/3 "2020-01-17T06:19:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
