# Setting up SSL for Elasticsearch

**URL:** <https://discuss.elastic.co/t/setting-up-ssl-for-elasticsearch/225414>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security, docker, beats-module\
**Created:** [March 27, 2020, 1:28pm UTC](https://discuss.elastic.co/t/setting-up-ssl-for-elasticsearch/225414 "2020-03-27T13:28:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michielM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michielm/32/46127_2.png) [@michielM](https://discuss.elastic.co/u/michielM)\
**Post date:** [March 27, 2020, 1:28pm UTC](https://discuss.elastic.co/t/setting-up-ssl-for-elasticsearch/225414/1 "2020-03-27T13:28:44Z")

</div>

Hi everyone,

I am setting up an ELK environment using auditbeat. I want so send my logs to my Elasticsearch endpoint and currently it's over http. I want to transfer this to https. I tried generating a certificate with Nginx and the Nginx lets encrypt companion since I am using Nginx already for my Kibana endpoint. Now I created a certificate for [elasticsearch.domain.com](http://elasticsearch.domain.com) and let it redirect to the Elasticsearch instance. so when I go to my browser and go to [elasticsearch.domain.com](http://elasticsearch.domain.com) I get redirected to port 9200 of the elasticsearch instance, which is good. But when I configure my auditbeat output to [elasticsearch.domain.com](http://elasticsearch.domain.com) it errors when connecting to backoff elasticsearch. Because it attempts to connect to [https://elasticsearch.domain.com:9200](https://elasticsearch.domain.com:9200)

Has anyone got an idea how to implement SSL here? Can't seem to find how to solve this very annoying problem...

My whole elastic stack is running in docker-compose

---

<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:** [April 24, 2020, 1:28pm UTC](https://discuss.elastic.co/t/setting-up-ssl-for-elasticsearch/225414/2 "2020-04-24T13:28:44Z")

</div>

Closed on April 24, 2020, 1:28pm UTC

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