# Elasticsearch do not shows passwords and token when start

**URL:** <https://discuss.elastic.co/t/elasticsearch-do-not-shows-passwords-and-token-when-start/315338>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security, docker\
**Created:** [September 28, 2022, 9:00am UTC](https://discuss.elastic.co/t/elasticsearch-do-not-shows-passwords-and-token-when-start/315338 "2022-09-28T09:00:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kostyantyn\_Dobriohlo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kostyantyn_dobriohlo/32/104458_2.png) [@Kostyantyn\_Dobriohlo](https://discuss.elastic.co/u/Kostyantyn_Dobriohlo)\
**Post date:** [September 28, 2022, 9:00am UTC](https://discuss.elastic.co/t/elasticsearch-do-not-shows-passwords-and-token-when-start/315338/1 "2022-09-28T09:00:53Z")

</div>

I am starting ELK with enabled xpack.security, and as I know elasticsearch shoud display passwords, enrollment token for kibana and other nodes and sha fingerprint. But there is no such information in logs. I am sure of this, 'cause it must be shown in special frame. And even if I try to create token manually I got an error "Elasticsearch node HTTP layer SSL configuration is not configured with a keystore"  
There is my docker-compose.yml

```auto
version: "2.2"
services:
  elasticsearch:
    image: elasticsearch:${ELK_VERSION:-8.4.2}
    environment:
      - discovery.type=single-node
      - ES_JAVA_OPTS=-Xms1g -Xmx1g
      - xpack.security.enabled=true
      - xpack.security.enrollment.enabled=true
    volumes:
      - es_data:/usr/share/elasticsearch/data
    ports:
      - "9200:9200"
      - "9300:9300"
    networks:
      - elastic
  kibana:
    image: kibana:${ELK_VERSION:-8.4.2}
    ports:
      - "5601:5601"
    depends_on:
      - elasticsearch
    networks:
      - elastic
  logstash:
    image: logstash:${ELK_VERSION:-8.4.2}
    ports:
      - "5959:5959"
    depends_on:
     - elasticsearch
    networks:
      - elastic
    volumes:
      - ./logstash/config:/usr/share/logstash/config:ro
    command: logstash -f /usr/share/logstash/config/pipeline.conf
    environment:
      LS_JAVA_OPTS: "-Xmx256m -Xms256m"
volumes:
  es_data:
    driver: local
networks:
  elastic:
    name: elastic
    driver: bridge

```

---

<div class="post-metadata">

**Author:** ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)\
**Post date:** [October 4, 2022, 5:41am UTC](https://discuss.elastic.co/t/elasticsearch-do-not-shows-passwords-and-token-when-start/315338/2 "2022-10-04T05:41:14Z")

</div>

For starting a cluster with ES and Kibana with docker-compose, please refer to this [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-compose-file). You can take the sample docker-compose file and modify it to suit your specific needs.

---

<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 1, 2022, 5:41am UTC](https://discuss.elastic.co/t/elasticsearch-do-not-shows-passwords-and-token-when-start/315338/3 "2022-11-01T05:41:28Z")

</div>

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