# Unable to connect to Elastic Search from Kibana

**URL:** https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-from-kibana/217337
**Category:** Kibana
**Created:** [January 31, 2020, 9:30am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-from-kibana/217337 "2020-01-31T09:30:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![JishnuD](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@JishnuD](https://discuss.elastic.co/u/JishnuD)
#### Post date: [January 31, 2020, 9:30am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-from-kibana/217337/1 "2020-01-31T09:30:04Z")

</div>

Hi Everyone,

I am running elasticsearch and kibana 7.1 on my local and trying to establish connectivity from Kibana to Elasticsearch post enabling https on Elasticsearch.

Kibana is reporting the below error

> Blockquote  
> [09:01:44.195] [error][data][elasticsearch] Request error, retrying GET [https://localhost:9200/\_xpack](https://localhost:9200/_xpack) =\> self signed certificate[09:01:44.195] [error][data][elasticsearch] Request error, retrying GET [https://localhost:9200/\_xpack](https://localhost:9200/_xpack) =\> self signed certificate

Below are the configurations on Kibana and elastic  
**Kibana**  
elasticsearch.hosts: ["[https://localhost:9200](https://localhost:9200)"]  
elasticsearch.ssl.certificateAuthorities: ["C:\MyFolder\PRD\thisFolder\kibana-7.1.1-windows-x86\_64\config\elastic.cer"]  
elasticsearch.ssl.verificationMode: certificate

**Elasticsearch**  
xpack.security.http.ssl.enabled: true  
xpack.security.http.ssl.keystore.path: elsecert  
xpack.security.http.ssl.truststore.path: elsecert  
xpack.security.http.ssl.client\_authentication: optional

xpack.security.transport.ssl.enabled: true  
xpack.security.transport.ssl.verification\_mode: certificate  
xpack.security.transport.ssl.keystore.path: elsecert  
xpack.security.transport.ssl.truststore.path: elsecert

---

<div class="post-metadata">

### Author: ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)
#### Post date: [January 31, 2020, 1:00pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-from-kibana/217337/2 "2020-01-31T13:00:46Z")

</div>

Hi @JishnuD, welcome to the discussion boards!

What is the file format of `C:\MyFolder\PRD\thisFolder\kibana-7.1.1-windows-x86_64\config\elastic.cer`? Typically, `.cer` is used for `DER` encoded certificates, but Kibana requires these to be specified in the `PEM` format.

Can you ensure/convert this certificate to `PEM`?

---

<div class="post-metadata">

### Author: ![JishnuD](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@JishnuD](https://discuss.elastic.co/u/JishnuD)
#### Post date: [January 31, 2020, 5:20pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-from-kibana/217337/3 "2020-01-31T17:20:34Z")

</div>

Hi Larry,

I had also tried with a pem file, which i generated using openssl on the PKCS#12 cert store generated for elastic search. The elsecert in the ElasticSearch config is the PKCS#12 cert store.  
However, it produces the same error trace.  
If i do set the verificationmode as none, kibana works as expected and i am able to setup connection to elasticsearch

---

<div class="post-metadata">

### Author: ![JishnuD](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@JishnuD](https://discuss.elastic.co/u/JishnuD)
#### Post date: [January 31, 2020, 7:19pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-from-kibana/217337/4 "2020-01-31T19:19:35Z")

</div>

@Larry_Gregory I was able to resolve all issues after following the steps outlined in [https://www.elastic.co/blog/elasticsearch-security-configure-tls-ssl-pki-authentication](https://www.elastic.co/blog/elasticsearch-security-configure-tls-ssl-pki-authentication)

Marking the issue as resolved . Thanks 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: [February 28, 2020, 7:19pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elastic-search-from-kibana/217337/5 "2020-02-28T19:19:37Z")

</div>

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