# Certificate format for Kibana

**URL:** https://discuss.elastic.co/t/certificate-format-for-kibana/246329
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [August 25, 2020, 5:00pm UTC](https://discuss.elastic.co/t/certificate-format-for-kibana/246329 "2020-08-25T17:00:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ManuelF](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@ManuelF](https://discuss.elastic.co/u/ManuelF)
#### Post date: [August 25, 2020, 5:00pm UTC](https://discuss.elastic.co/t/certificate-format-for-kibana/246329/1 "2020-08-25T17:00:40Z")

</div>

Hi,

Note: Running ELK 7.9

I am trying to configure TLS in Kibana to try out the Alerts beta feature. By following the [official documentation](https://www.elastic.co/guide/en/kibana/7.9/configuring-tls.html), the `bin/elasticsearch-certutil csr` tool will generate a cert in PEM format, but in the same article (step 2.b) it looks like I could (somehow) generate the cert in PKCS#12 format. Also in the same article you can find the following in the 3rd paragraph:

> Kibana supports certificates and private keys in PEM or PKCS#12 format

In this other [thread](https://discuss.elastic.co/t/why-does-elasticsearch-use-pkcs-12-while-kibana-needs-pem/161756/2) is explained that Kibana does not supports PKCS#12 format, so I am confused now.

- Does Kibana supports (or not) certs in PKCS#12 format?
  - If YES, please show me how to make my config simpler.
  - If NOT, please update official documentation and remove step 2.b or parts stating that Kibana supports PKCS#12 format, to avoid confusion.

Thank you in advance

---

<div class="post-metadata">

### Author: ![ManuelF](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@ManuelF](https://discuss.elastic.co/u/ManuelF)
#### Post date: [August 25, 2020, 8:57pm UTC](https://discuss.elastic.co/t/certificate-format-for-kibana/246329/2 "2020-08-25T20:57:09Z")

</div>

**Update**

After spending some time testing back and forward I was able to get it to work

1. Kibana does support PKCS#12 format
2. Make sure you have the following lines within your `kibana.yml` file

```auto
server.ssl.enabled: true
server.ssl.keystore.path: "/etc/kibana/certs/elastic-certificates.p12"
elasticsearch.ssl.certificateAuthorities: ["/etc/kibana/certs/elastic-stack-ca.p12"]
elasticsearch.ssl.verificationMode: certificate

```

1. If your certificate is not password protected, make sure to also add an empty string "" to the `kibana-keystore`. When prompt for a password, just leave in blank.

`$ sudo /usr/share/kibana/bin/kibana-keystore add server.ssl.keystore.password --allow-root`

1. Restart kibana service
2. You can now point your browser to `https://[kibana_address]:5601`

The above steps worked for me and I hope this help other users as well  
Cheers!

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [August 25, 2020, 9:40pm UTC](https://discuss.elastic.co/t/certificate-format-for-kibana/246329/3 "2020-08-25T21:40:42Z")

</div>

> [@ManuelF](#):
>
> In this other [thread](https://discuss.elastic.co/t/why-does-elasticsearch-use-pkcs-12-while-kibana-needs-pem/161756/2) is explained that Kibana does not supports PKCS#12 format, so I am confused now.

Official documentation is correct. Also Tim was correct when he wrote that post in 2018, back then Kibana did not support PKCS#12 but now does.

---

<div class="post-metadata">

### Author: ![ManuelF](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@ManuelF](https://discuss.elastic.co/u/ManuelF)
#### Post date: [August 26, 2020, 12:35pm UTC](https://discuss.elastic.co/t/certificate-format-for-kibana/246329/4 "2020-08-26T12:35:49Z")

</div>

Thank you very much for your clarifying explanation.

---

<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: [September 23, 2020, 12:36pm UTC](https://discuss.elastic.co/t/certificate-format-for-kibana/246329/5 "2020-09-23T12:36:03Z")

</div>

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