# Disable hostname verification for xpack monitoring

**URL:** <https://discuss.elastic.co/t/disable-hostname-verification-for-xpack-monitoring/102893>\
**Category:** Elasticsearch\
**Created:** [October 5, 2017, 6:27pm UTC](https://discuss.elastic.co/t/disable-hostname-verification-for-xpack-monitoring/102893 "2017-10-05T18:27:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lgee/32/76444_2.png) [@lgee](https://discuss.elastic.co/u/lgee)\
**Post date:** [October 5, 2017, 6:27pm UTC](https://discuss.elastic.co/t/disable-hostname-verification-for-xpack-monitoring/102893/1 "2017-10-05T18:27:56Z")

</div>

I'm seeing the following error in the Kibana logs:

Request error, retrying\nHEAD [https://xxxxxx:9200/](https://xxxxxx:9200/) =\> Hostname/IP doesn't match certificate's altnames: "Host: [xxxxx.eu-west-2.elb.amazonaws.com](http://xxxxx.eu-west-2.elb.amazonaws.com). is not in the cert's altnames: DNS:xxxxxx""

This is despite providing a CA with [xpack.monitoring.elasticsearch.ssl.ca](http://xpack.monitoring.elasticsearch.ssl.ca).

Kibana itself shows a page with Status: RED and lists this error message:

plugin:monitoring@5.6.2 No Living connections

How can I disable hostname verification for the monitoring url?

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [October 6, 2017, 9:22am UTC](https://discuss.elastic.co/t/disable-hostname-verification-for-xpack-monitoring/102893/2 "2017-10-06T09:22:31Z")

</div>

Hi @lgee,

by default even certificates from trusted CAs must contain the correct hostname. If you want to explicitly disable the hostname check, try setting `xpack.monitoring.elasticsearch.ssl.verificationMode` to `"certificate"` instead of `"full"`.

---

<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:** [November 3, 2017, 9:23am UTC](https://discuss.elastic.co/t/disable-hostname-verification-for-xpack-monitoring/102893/3 "2017-11-03T09:23:53Z")

</div>

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