# Security error in kibana container

**URL:** <https://discuss.elastic.co/t/security-error-in-kibana-container/302728>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [April 19, 2022, 3:31pm UTC](https://discuss.elastic.co/t/security-error-in-kibana-container/302728 "2022-04-19T15:31:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ffknob](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ffknob/32/37008_2.png) [@ffknob](https://discuss.elastic.co/u/ffknob)\
**Post date:** [April 19, 2022, 6:21pm UTC](https://discuss.elastic.co/t/security-error-in-kibana-container/302728/2 "2022-04-19T18:21:25Z")

</div>

Take a look at this answer from StackOverflow, it might help:

> <https://stackoverflow.com/questions/63030755/error-error0909006cpem-routinesget-nameno-start-line-node/63042717#63042717>

One other thing, when you are generating the certificates you are passing parameters like `--dns elasticsearch01`, but I think your internal docker name resolution will create containers with hostnames like ` john_es01` (it will take it from the `container_name` of each service in your docker-compose file).

I think the problem here is Kibana is expecting your cert file to be in PEM format, but it is not. What is the content of the `config/certs/kibana.crt` file?

This is another thread where the user got the exactly the same error you are getting in Kibana:

> [@How to create security certificate pem for elasticsearch an kibana](https://discuss.elastic.co/t/how-to-create-security-certificate-pem-for-elasticsearch-an-kibana/189249/9):
>
> Also I am not a helm user or expert.

---

_[View the full topic](https://discuss.elastic.co/t/security-error-in-kibana-container/302728)._
