# Unencrypted private key needed in browser-kibana https communication?

**URL:** <https://discuss.elastic.co/t/unencrypted-private-key-needed-in-browser-kibana-https-communication/47417>\
**Category:** Kibana\
**Created:** [April 14, 2016, 4:43pm UTC](https://discuss.elastic.co/t/unencrypted-private-key-needed-in-browser-kibana-https-communication/47417 "2016-04-14T16:43:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CraigFoote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craigfoote/32/4571_2.png) [@CraigFoote](https://discuss.elastic.co/u/CraigFoote)\
**Post date:** [April 14, 2016, 4:43pm UTC](https://discuss.elastic.co/t/unencrypted-private-key-needed-in-browser-kibana-https-communication/47417/1 "2016-04-14T16:43:19Z")

</div>

I followed the instructions at [https://www.elastic.co/guide/en/kibana/current/production.html#enabling-ssl](https://www.elastic.co/guide/en/kibana/current/production.html#enabling-ssl) and got an error accessing Kibana through https:

`FATAL[Error:error:0907B068:PEM routines:PEM_READ_BIO_PRIVATEKEY:bad password read]`

I re-exported the key from my p12 using:

`openssl pkcs12 -in mykey.p12 -nodes -out mykey.pem`

... and it worked. But I understand the `-nodes` to have removed encryption of the key which I'm guessing is a bad thing. Is non-encryption required or am I doing something wrong?

Craig

---

<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, 1:56pm UTC](https://discuss.elastic.co/t/unencrypted-private-key-needed-in-browser-kibana-https-communication/47417/2 "2017-07-06T13:56:04Z")

</div>

Closed on July 6, 2017, 1:56pm UTC


