# Elasticsearch with TLS for external and HTTP for localhost?

**URL:** <https://discuss.elastic.co/t/elasticsearch-with-tls-for-external-and-http-for-localhost/217428>\
**Category:** Elasticsearch\
**Created:** [January 31, 2020, 4:37pm UTC](https://discuss.elastic.co/t/elasticsearch-with-tls-for-external-and-http-for-localhost/217428 "2020-01-31T16:37:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptselios](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@ptselios](https://discuss.elastic.co/u/ptselios)\
**Post date:** [January 31, 2020, 4:37pm UTC](https://discuss.elastic.co/t/elasticsearch-with-tls-for-external-and-http-for-localhost/217428/1 "2020-01-31T16:37:12Z")

</div>

Is it possible to make Elasticsearch for listen on HTTPS for external traffic (traffic that targets the IP of the machine) and use plain HTTP for localhost connections?

I have Kibana on the same host as Elasticsearch and I don't see the reason to use HTTPS for Kibana--\>ES communication.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 1, 2020, 4:33am UTC](https://discuss.elastic.co/t/elasticsearch-with-tls-for-external-and-http-for-localhost/217428/2 "2020-02-01T04:33:37Z")

</div>

No you can't do that IMO.

---

<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:** [February 29, 2020, 4:33am UTC](https://discuss.elastic.co/t/elasticsearch-with-tls-for-external-and-http-for-localhost/217428/3 "2020-02-29T04:33:39Z")

</div>

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