# Getting error while enabling SSL in Kibana

**URL:** https://discuss.elastic.co/t/getting-error-while-enabling-ssl-in-kibana/39768
**Category:** Kibana
**Created:** [January 21, 2016, 1:06pm UTC](https://discuss.elastic.co/t/getting-error-while-enabling-ssl-in-kibana/39768 "2016-01-21T13:06:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![RohanKumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohankumbhar/32/23649_2.png) [@RohanKumbhar](https://discuss.elastic.co/u/RohanKumbhar)
#### Post date: [January 21, 2016, 1:06pm UTC](https://discuss.elastic.co/t/getting-error-while-enabling-ssl-in-kibana/39768/1 "2016-01-21T13:06:39Z")

</div>

Hi Team,

I am getting error while configuring SSL in kibana.

Steps that i have tried.

1. we are using Keytool to generate .key and .crt and public key we are getting from MS PKI.
2. after including .key and .cert into the kibana.yml file

# SSL for outgoing requests from the Kibana Server (PEM formatted)

ssl\_key\_file: /elkt/ssl/server.key  
ssl\_cert\_file: /elkt/ssl/server.crt

we are getting below error.  
crypto.js:135  
if (options.cert) c.context.setCert(options.cert);  
^  
Error: error:0906D06C:PEM routines:PEM\_read\_bio:no start line  
at Object.exports.createCredentials (crypto.js:135:31)

Kindly help me to fix this issue.  
Also let me know if you have any steps to configure the SSL in Kibana.

Note: already referred below link but it didnt help to fix the issue.  
[https://www.elastic.co/guide/en/kibana/current/production.html#enabling-ssl](https://www.elastic.co/guide/en/kibana/current/production.html#enabling-ssl)

Thanks,  
Rohan

---

<div class="post-metadata">

### Author: ![rashid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashid/32/12566_2.png) [@rashid](https://discuss.elastic.co/u/rashid)
#### Post date: [January 21, 2016, 9:17pm UTC](https://discuss.elastic.co/t/getting-error-while-enabling-ssl-in-kibana/39768/2 "2016-01-21T21:17:56Z")

</div>

Can you try generating certs with openssl? If i had to guess the certs are in the wrong format.

---

<div class="post-metadata">

### Author: ![RohanKumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohankumbhar/32/23649_2.png) [@RohanKumbhar](https://discuss.elastic.co/u/RohanKumbhar)
#### Post date: [February 10, 2016, 8:48am UTC](https://discuss.elastic.co/t/getting-error-while-enabling-ssl-in-kibana/39768/3 "2016-02-10T08:48:49Z")

</div>

Thanks Rashid,

Could you please provide the steps or any link for enabling SSL for kibana? as we tried generating .cert and .key using openssl but it showing "untrusted certifcate" error on browser.

Any help on this would be really appriciated.

Thanks,  
Rohan

---

<div class="post-metadata">

### Author: ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)
#### Post date: [February 10, 2016, 5:57pm UTC](https://discuss.elastic.co/t/getting-error-while-enabling-ssl-in-kibana/39768/4 "2016-02-10T17:57:25Z")

</div>

All Shield+Kibana instructions should be here:  
[https://www.elastic.co/guide/en/shield/current/kibana.html](https://www.elastic.co/guide/en/shield/current/kibana.html)

Also, Kibana server settings around SSL are covered here:  
[https://www.elastic.co/guide/en/kibana/current/kibana-server-properties.html](https://www.elastic.co/guide/en/kibana/current/kibana-server-properties.html)

---

<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: [July 6, 2017, 2:02pm UTC](https://discuss.elastic.co/t/getting-error-while-enabling-ssl-in-kibana/39768/5 "2017-07-06T14:02:37Z")

</div>


