# Need Help Configuring HTTPS Between Elasticsearch and Kibana

**URL:** https://discuss.elastic.co/t/need-help-configuring-https-between-elasticsearch-and-kibana/343649
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [September 22, 2023, 6:11pm UTC](https://discuss.elastic.co/t/need-help-configuring-https-between-elasticsearch-and-kibana/343649 "2023-09-22T18:11:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sami\_mezghani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sami_mezghani/32/125943_2.png) [@sami\_mezghani](https://discuss.elastic.co/u/sami_mezghani)
#### Post date: [September 22, 2023, 6:11pm UTC](https://discuss.elastic.co/t/need-help-configuring-https-between-elasticsearch-and-kibana/343649/1 "2023-09-22T18:11:55Z")

</div>

Hello forum members,

I'm new to Elasticsearch and Kibana, and I'm currently trying to set up a secure connection (HTTPS) between Elasticsearch and Kibana. I've generated the necessary certificates using `elasticsearch-certutil`, but I'm encountering some issues.

Here's my current configuration:

**Elasticsearch:**

- Image: elasticsearch:8.8.1
- Environment variables:
  - `discovery.type=single-node`
  - `ELASTIC_PASSWORD=changeme`
  - `xpack.security.enabled=true`
  - `xpack.security.http.ssl.enabled=true`
  - `xpack.security.http.ssl.keystore.path=/usr/share/elasticsearch/config/certs/elastic-certificates.p12`
  - `xpack.security.http.ssl.truststore.path=/usr/share/elasticsearch/config/certs/elastic-certificates.p12`
  - `xpack.security.http.ssl.verification_mode=none`

- Ports: 9200:9200
- Volumes: `./certs:/usr/share/elasticsearch/config/certs`

**Kibana:**

- Image: kibana:8.8.1
- Environment variables:
  - `ELASTICSEARCH_HOSTS=https://es:9200`
  - `ELASTICSEARCH_USERNAME=kibana_system`
  - `ELASTICSEARCH_PASSWORD=changeme` (I changed it with `elasticsearch-setup-passwords interactive`)
  - `server.ssl.enabled=true`
  - `server.ssl.keystore.path="/usr/share/kibana/config/certs/kibana-certificates.p12"`
  - `elasticsearch.ssl.certificateAuthorities=["/usr/share/kibana/config/certs/elastic-stack-ca.p12"]`
  - `elasticsearch.ssl.verificationMode=none`

- Ports: 5601:5601
- Volumes: `./certs:/usr/share/kibana/config/certs`
- Depends on: Elasticsearch

**Networks:**

- `elastic` driver: bridge

The problem I'm facing is error message: "Unable to retrieve version information from Elasticsearch nodes. self signed certificate in certificate chain."  
and when I try to access Kibana via `https://localhost:5601/` no page exists , When I use `http://localhost:5601/`, I get "Kibana server is not ready yet."

I've tried changing the `certificateAuthorities` to `certificate`, but the issue persists.

I'd appreciate any guidance or insights into what might be causing this problem and how to resolve it. If you need any additional information or configurations, please let me know.

Thank you for your help!

---

<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: [October 20, 2023, 6:12pm UTC](https://discuss.elastic.co/t/need-help-configuring-https-between-elasticsearch-and-kibana/343649/2 "2023-10-20T18:12:29Z")

</div>

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