# Enable https on elasticsearchs

**URL:** <https://discuss.elastic.co/t/enable-https-on-elasticsearchs/295702>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [January 28, 2022, 12:36pm UTC](https://discuss.elastic.co/t/enable-https-on-elasticsearchs/295702 "2022-01-28T12:36:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikssssss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikssssss/32/115176_2.png) [@nikssssss](https://discuss.elastic.co/u/nikssssss)\
**Post date:** [January 28, 2022, 12:36pm UTC](https://discuss.elastic.co/t/enable-https-on-elasticsearchs/295702/1 "2022-01-28T12:36:55Z")

</div>

hello,  
I just want to have https for the Elasticsearch...  
i have my .pem certification from my company with private key. What i have to do to enable https?

the above configuration in yml is ok?

xpack.security.enabled: true  
xpack.security.http.ssl.enabled: true  
xpack.security.http.ssl.certificate: ...path with .pem

---

<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:** [February 25, 2022, 12:37pm UTC](https://discuss.elastic.co/t/enable-https-on-elasticsearchs/295702/2 "2022-02-25T12:37:19Z")

</div>

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