# You must enable Transport Layer Security

**URL:** <https://discuss.elastic.co/t/you-must-enable-transport-layer-security/276696>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting, docker\
**Created:** [June 22, 2021, 6:51pm UTC](https://discuss.elastic.co/t/you-must-enable-transport-layer-security/276696 "2021-06-22T18:51:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akanksha\_Pandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akanksha_pandey/32/89539_2.png) [@Akanksha\_Pandey](https://discuss.elastic.co/u/Akanksha_Pandey)\
**Post date:** [June 22, 2021, 6:51pm UTC](https://discuss.elastic.co/t/you-must-enable-transport-layer-security/276696/1 "2021-06-22T18:51:13Z")

</div>

My Kibana version is `7.9.2`. In my `docker-compose.yaml` file, when I change the path of source from `conf` to `config`- my Kibana alerts are disabled and it says to enable TLS:

 ![Screenshot (148)](https://us1.discourse-cdn.com/elastic/original/3X/2/3/23227bef862d14e638ca65ceb5da76042b738e35.png)

PS. I am changing the source path from `conf` to `config` in order to enable user login in `Kibana`

Here is my `docker-compose.yaml` file:

```auto
services: 
  elasticsearch: 
    build:
      context: elasticsearch/
    container_name: elasticsearch
    volumes:
      - type: bind
        source: ./elasticsearch/conf/elasticsearch.yml
        target: /usr/share/elasticsearch/config/elasticsearch.yml
        read_only: true
      - type: volume
        source: elasticsearch
        target: /usr/share/elasticsearch/data
    ports:
      - "9200:9200"
    environment:
      ES_JAVA_OPTS: "-Xmx2g -Xms2g"
      ELASTIC_PASSWORD: 
      ELASTIC_USERNAME : 
      # Use single node discovery in order to disable production mode and avoid bootstrap checks.
      # see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
      discovery.type: single-node
    networks:
      - elastic
    restart: always
  
  logstash:
    container_name: logstash
    build: 
      context: logstash/
    # command: logstash -f /conf/logstash.conf
    volumes:
      - type: bind
        source: ./logstash/conf/logstash.yml
        target: /usr/share/logstash/config/logstash.yml
        read_only: true
      - type: bind
        source: ./logstash/pipeline
        target: /usr/share/logstash/pipeline
        read_only: true
    ports:
     - "5043:5043"
     - "5044:5044"
    environment:
      LS_JAVA_OPTS: "-Xmx1g -Xms1g"
    networks:
      - elastic
    depends_on:
     - elasticsearch
    restart: always

  kibana:
    build:
      context: kibana/
    container_name: 
    environment:
      XPACK_APM_SERVICEMAPENABLED: "true"
      XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: " "
    volumes:
      - type: bind
        source: ./kibana/conf/kibana.yml
        target: /usr/share/kibana/config/kibana.yml
        read_only: true
    ports:
      - "5601:5601"
    networks:
        - elastic
    depends_on:
      - elasticsearch
    restart: always

```

Can anyone help me what I'm missing?

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [June 22, 2021, 6:59pm UTC](https://discuss.elastic.co/t/you-must-enable-transport-layer-security/276696/2 "2021-06-22T18:59:22Z")

</div>

I do not know much about docker but in order to enable TLS, you have to do lot of thing. here is link that I followed

[https://www.elastic.co/blog/configuring-ssl-tls-and-https-to-secure-elasticsearch-kibana-beats-and-logstash](https://www.elastic.co/blog/configuring-ssl-tls-and-https-to-secure-elasticsearch-kibana-beats-and-logstash)

---

<div class="post-metadata">

**Author:** ![Patrick\_Mueller](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick_mueller/32/109425_2.png) [@Patrick\_Mueller](https://discuss.elastic.co/u/Patrick_Mueller)\
**Post date:** [June 29, 2021, 6:10pm UTC](https://discuss.elastic.co/t/you-must-enable-transport-layer-security/276696/3 "2021-06-29T18:10:20Z")

</div>

The instructions for configuring TLS between Kibana and Elasticsearch is here (for 7.9): [Encrypt communications in Kibana | Kibana Guide [7.9] | Elastic](https://www.elastic.co/guide/en/kibana/7.9/configuring-tls.html)

---

<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:** [July 27, 2021, 6:10pm UTC](https://discuss.elastic.co/t/you-must-enable-transport-layer-security/276696/4 "2021-07-27T18:10:47Z")

</div>

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