# Kibana not working when ssl is enabled

**URL:** <https://discuss.elastic.co/t/kibana-not-working-when-ssl-is-enabled/85552>\
**Category:** Kibana\
**Created:** [May 12, 2017, 11:27am UTC](https://discuss.elastic.co/t/kibana-not-working-when-ssl-is-enabled/85552 "2017-05-12T11:27:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anusha.kadambala](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@anusha.kadambala](https://discuss.elastic.co/u/anusha.kadambala)\
**Post date:** [May 12, 2017, 11:27am UTC](https://discuss.elastic.co/t/kibana-not-working-when-ssl-is-enabled/85552/1 "2017-05-12T11:27:46Z")

</div>

Hi all,

I am using elasticsearch, kibana, logstash and xpack of 5.1.1 version. I enabled ssl following below two links  
[https://www.elastic.co/guide/en/x-pack/current/kibana.html#configure-kibana-ssl](https://www.elastic.co/guide/en/x-pack/current/kibana.html#configure-kibana-ssl)  
[https://www.elastic.co/guide/en/x-pack/current/ssl-tls.html](https://www.elastic.co/guide/en/x-pack/current/ssl-tls.html)

We are able to login in elasticsearch but kibana windows is not loading. It says "This site cant provide a secure connection and sent an invalid response.".

I generated cert files using certgen tool and changed following parameters in the kibana.yml  
elasticsearch.url: "[https://ip:9200](https://ip:9200)"  
server.ssl.cert: /etc/elasticsearch/x-pack/mmlctl1/mmlctl1.crt  
server.ssl.key: /etc/elasticsearch/x-pack/mmlctl1/mmlctl1.key  
[elasticsearch.ssl.ca](http://elasticsearch.ssl.ca): ["/etc/elasticsearch/x-pack/ca/ca.crt"]  
Then i restarted kibana and ran [https://ip:5601](https://ip:5601). It is failing with above error message  
Please let me know what else should i need to change.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [May 12, 2017, 3:01pm UTC](https://discuss.elastic.co/t/kibana-not-working-when-ssl-is-enabled/85552/2 "2017-05-12T15:01:54Z")

</div>

Are there any errors shown in the Kibana logs? Also, you should have different certificates for Kibana and Elasticsearch.

---

<div class="post-metadata">

**Author:** ![anusha.kadambala](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@anusha.kadambala](https://discuss.elastic.co/u/anusha.kadambala)\
**Post date:** [May 15, 2017, 4:54am UTC](https://discuss.elastic.co/t/kibana-not-working-when-ssl-is-enabled/85552/3 "2017-05-15T04:54:29Z")

</div>

There are no errors shown in kibana logs. Different certificates for kibana and elasticsearch means do we need to generate twice for the same machine using certgen

---

<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:** [June 12, 2017, 4:58am UTC](https://discuss.elastic.co/t/kibana-not-working-when-ssl-is-enabled/85552/4 "2017-06-12T04:58:41Z")

</div>

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