# Setting up SSL in Kibana - Permissions Error

**URL:** <https://discuss.elastic.co/t/setting-up-ssl-in-kibana-permissions-error/100926>\
**Category:** Kibana\
**Created:** [September 18, 2017, 7:51pm UTC](https://discuss.elastic.co/t/setting-up-ssl-in-kibana-permissions-error/100926 "2017-09-18T19:51:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_garrett](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@r\_garrett](https://discuss.elastic.co/u/r_garrett)\
**Post date:** [September 18, 2017, 7:51pm UTC](https://discuss.elastic.co/t/setting-up-ssl-in-kibana-permissions-error/100926/1 "2017-09-18T19:51:13Z")

</div>

Hey,

I am trying to setup SSL with Kibana, and am running into an odd permission error. It is an RPM install on Linux and I am using the same file for Elasticsearch and it is working without issue.

Error received when starting Kibana  
FATAL { Error: EACCES: permission denied, open '/etc/elasticsearch/x-pack/elastic/elastic.key'

Kibana.yml excerpt  
server.ssl.enabled: true  
server.ssl.certificate: /etc/elasticsearch/x-pack/elastic/elastic.crt  
server.ssl.key: /etc/elasticsearch/x-pack/elastic/elastic.key

Permissions on the .key file  
-rw-r--r--. 1 root root /etc/elasticsearch/x-pack/elastic/elastic.key

Any guidance would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [September 18, 2017, 9:37pm UTC](https://discuss.elastic.co/t/setting-up-ssl-in-kibana-permissions-error/100926/2 "2017-09-18T21:37:40Z")

</div>

I've seen cases where Elasticsearch wasn't able to open SSL certs if they were anywhere other than under it's directory. Maybe Kibana is the same way. Can you try copying the elastic.key file to /etc/kibana/ and changing the kibana.yml to point to it there and see if that works.

If that doesn't do it, you might also chown the file to be owned by the kibana user (gets created during install).

---

<div class="post-metadata">

**Author:** ![r\_garrett](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@r\_garrett](https://discuss.elastic.co/u/r_garrett)\
**Post date:** [September 19, 2017, 1:37pm UTC](https://discuss.elastic.co/t/setting-up-ssl-in-kibana-permissions-error/100926/3 "2017-09-19T13:37:49Z")

</div>

> [@LeeDr](#):
>
> /etc/kibana/ a

Hey Lee,

Yes, that worked. Thanks for the info.

---

<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 17, 2017, 1:37pm UTC](https://discuss.elastic.co/t/setting-up-ssl-in-kibana-permissions-error/100926/4 "2017-10-17T13:37:50Z")

</div>

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