# ElasticSearch, Filebeat SSL authentication

**URL:** <https://discuss.elastic.co/t/elasticsearch-filebeat-ssl-authentication/240657>\
**Category:** Beats\
**Tags:** elastic-stack-security, filebeat\
**Created:** [July 10, 2020, 8:29am UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-ssl-authentication/240657 "2020-07-10T08:29:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![taseer94](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taseer94](https://discuss.elastic.co/u/taseer94)\
**Post date:** [July 10, 2020, 8:29am UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-ssl-authentication/240657/1 "2020-07-10T08:29:58Z")

</div>

Hi all,

I am trying to secure elasticsearch with SSL certificates. I have configured SSL in ingress pointing to elastic, and then added the root and intermediate certificates in the filebeats image. However, when I configure filebeat to send data over HTTPS, I get the following error,

```auto
Cannot establish connection to (https://my-domain.com)
server gave HTTP response to HTTPS client

```

Any help regarding this will be appreciated !

Thanks and regards,  
Taseer

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [July 13, 2020, 8:01am UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-ssl-authentication/240657/2 "2020-07-13T08:01:45Z")

</div>

Hi!

The error message indicates that the server is not properly configured to authenticate over HTTPS but gave an answer using HTTP. Could you verify that you have successfully configured Elasticsearch with SLL. For this step you can also leave out Filebeat and use curt to reach the TLS secured Elasticsearch API.

C.

---

<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:** [August 10, 2020, 10:01am UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-ssl-authentication/240657/3 "2020-08-10T10:01:57Z")

</div>

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