# Connecting kibana (not in docker) with elasticsearch docker

**URL:** <https://discuss.elastic.co/t/connecting-kibana-not-in-docker-with-elasticsearch-docker/200135>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [September 19, 2019, 7:23am UTC](https://discuss.elastic.co/t/connecting-kibana-not-in-docker-with-elasticsearch-docker/200135 "2019-09-19T07:23:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy\_rizqi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandy_rizqi/32/54480_2.png) [@sandy\_rizqi](https://discuss.elastic.co/u/sandy_rizqi)\
**Post date:** [September 19, 2019, 7:23am UTC](https://discuss.elastic.co/t/connecting-kibana-not-in-docker-with-elasticsearch-docker/200135/1 "2019-09-19T07:23:50Z")

</div>

Hi , i want to connect my kibana to elastic search docker , there are in different server.  
When i tried to access elasticsearch from browser it works fine, but when i tried to connect kibana to that server it notified that Unable to revive connection. I use kibana in other server but not in dockerize .

Any one can help ?

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/0/80396d11a0a43e0adbd040763c6eeb11fabd5bae.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/f/af2b7a1d341309c18f5cdd2b701c0e19aa02be68.png)

here is my kibana.yml

server.port: 5601  
server.host: "10.x.x.x"  
server.name: "sqm-dashboard"  
elasticsearch.hosts: ["[https://10.x.x.x:9200](https://10.x.x.x:9200)"]

elasticsearch.username: "elastic"  
elasticsearch.password: "xxxxx"

server.ssl.enabled: true  
server.ssl.certificate: /home/admapp/kibana-7.3.1-linux-x86\_64/config/certs/kibana.crt  
server.ssl.key: /home/admapp/kibana-7.3.1-linux-x86\_64/config/certs/kibana.key

logging.verbose: false

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [September 21, 2019, 1:08am UTC](https://discuss.elastic.co/t/connecting-kibana-not-in-docker-with-elasticsearch-docker/200135/2 "2019-09-21T01:08:36Z")

</div>

I see this error in the log. `... unable to verify the first certificate`

Are you using SSL and have you configured it correctly? [https://www.elastic.co/guide/en/kibana/7.3/configuring-tls.html](https://www.elastic.co/guide/en/kibana/7.3/configuring-tls.html)

---

<div class="post-metadata">

**Author:** ![VietCong](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@VietCong](https://discuss.elastic.co/u/VietCong)\
**Post date:** [September 21, 2019, 5:40am UTC](https://discuss.elastic.co/t/connecting-kibana-not-in-docker-with-elasticsearch-docker/200135/3 "2019-09-21T05:40:36Z")

</div>

I would also check docker port mapping

---

<div class="post-metadata">

**Author:** ![sandy\_rizqi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandy_rizqi/32/54480_2.png) [@sandy\_rizqi](https://discuss.elastic.co/u/sandy_rizqi)\
**Post date:** [September 23, 2019, 2:51am UTC](https://discuss.elastic.co/t/connecting-kibana-not-in-docker-with-elasticsearch-docker/200135/4 "2019-09-23T02:51:54Z")

</div>

Hi nick , in where server i have to generate certificate first ? in kibana server or in my elasticsearch docker ? actually its different physical server

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [September 24, 2019, 8:50pm UTC](https://discuss.elastic.co/t/connecting-kibana-not-in-docker-with-elasticsearch-docker/200135/5 "2019-09-24T20:50:26Z")

</div>

Here's a step by step process for configuring SSL in the Elastic stack.

> **[Configuring SSL, TLS, and HTTPS to secure Elasticsearch, Kibana, Beats, and...](https://www.elastic.co/blog/configuring-ssl-tls-and-https-to-secure-elasticsearch-kibana-beats-and-logstash)**
>
> Feeling insecure about your Elastic Stack security? Run through these step-by-step instructions for setting up TLS encryption and https on Elasticsearch, Kibana, Logstash, and Beats to shore up your stack's defenses. Highly recommended for end-to-end...

---

<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 22, 2019, 8:50pm UTC](https://discuss.elastic.co/t/connecting-kibana-not-in-docker-with-elasticsearch-docker/200135/6 "2019-10-22T20:50:34Z")

</div>

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