# Make .p12 to .pem for kibana

**URL:** <https://discuss.elastic.co/t/make-p12-to-pem-for-kibana/183231>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [May 29, 2019, 6:14am UTC](https://discuss.elastic.co/t/make-p12-to-pem-for-kibana/183231 "2019-05-29T06:14:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [May 29, 2019, 7:33am UTC](https://discuss.elastic.co/t/make-p12-to-pem-for-kibana/183231/6 "2019-05-29T07:33:42Z")

</div>

Please use the \</\> button or backticks (```) to format your post when it contains long snippets of code or configuration, as it's really hard to read otherwise 🙂 You can check the previw window on the right when you write your post to see how it looks.

Please verify that the certificate has been exported correctly, share the output ( again , use the `</>` button or backticks ) of

```auto
cat /etc/kibana/elastic-ca.pem

```

```auto
ls -l /etc/kibana/elastic-ca.pem

```

```auto
openssl x509 -in elastic-ca.pem -text -noout

```

If the file (`elastic-ca.pem`) looks empty, please try to export it again using

```auto
openssl pkcs12 -in elastic-certificates.p12 -clcerts -nokeys -out elastic-ca.pem

```

(this is slightly different than the one I shared earlier , it contains `-clcerts` instead of `-cacerts` now ) and try again.

---

_[View the full topic](https://discuss.elastic.co/t/make-p12-to-pem-for-kibana/183231)._
