# Change elasticsearch certification file path (for tls)

**URL:** <https://discuss.elastic.co/t/change-elasticsearch-certification-file-path-for-tls/186975>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [June 23, 2019, 12:45am UTC](https://discuss.elastic.co/t/change-elasticsearch-certification-file-path-for-tls/186975 "2019-06-23T00:45:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [June 23, 2019, 12:45am UTC](https://discuss.elastic.co/t/change-elasticsearch-certification-file-path-for-tls/186975/1 "2019-06-23T00:45:42Z")

</div>

I use elasticsearch in kubernetes.  
Use the certificate generated by kubernetes in pem format.

The problem is that this certificate path is out of elasticsearch/config.  
For example, I have a ca.crt file in /var/tls/ca.crt, and I have no idea how to move it into POD's elasticsearch/config path.

The init container method also failed because the elasticsearch path was already volume mounted.

I think there are many cases like me, is there a way to do it?

i use it. (elastic helm chart)

> **[elastic/helm-charts](https://github.com/elastic/helm-charts/tree/master/elasticsearch)**
>
> You know, for Kubernetes. Contribute to elastic/helm-charts development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![michael.russell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael.russell/32/27889_2.png) [@michael.russell](https://discuss.elastic.co/u/michael.russell)\
**Post date:** [June 24, 2019, 1:18pm UTC](https://discuss.elastic.co/t/change-elasticsearch-certification-file-path-for-tls/186975/2 "2019-06-24T13:18:08Z")

</div>

Hey!

It sounds like you have done most of the steps and are nearly there! Could you try following the [security example](https://github.com/elastic/helm-charts/blob/master/elasticsearch/README.md#security)? It also shows you how to mount the certificates under the `config/` directory.

---

<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:** [July 22, 2019, 1:18pm UTC](https://discuss.elastic.co/t/change-elasticsearch-certification-file-path-for-tls/186975/3 "2019-07-22T13:18:19Z")

</div>

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