Setting up SSL in Kibana - Permissions Error

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.

1 Like

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).

2 Likes

Hey Lee,

Yes, that worked. Thanks for the info.

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