# Using HTTPS on Elastic Agent

**URL:** <https://discuss.elastic.co/t/using-https-on-elastic-agent/362816>\
**Category:** Elastic Agent\
**Created:** [July 9, 2024, 6:40pm UTC](https://discuss.elastic.co/t/using-https-on-elastic-agent/362816 "2024-07-09T18:40:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Santana](https://avatars.discourse-cdn.com/v4/letter/v/a587f6/32.png) [@Victor\_Santana](https://discuss.elastic.co/u/Victor_Santana)\
**Post date:** [July 9, 2024, 6:40pm UTC](https://discuss.elastic.co/t/using-https-on-elastic-agent/362816/1 "2024-07-09T18:40:55Z")

</div>

Hello,  
I tried to enable SSL on my Elastic Agent communications to use HTTPS like in the doc bellow, but, it didn't worked for me and after trying a lot of things I don't now what else to do. Any help?

> **[Tutorial 2: Securing a self-managed Elastic Stack | Elastic Installation and...](https://www.elastic.co/guide/en/elastic-stack/current/install-stack-demo-secure.html)**

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [July 10, 2024, 5:47pm UTC](https://discuss.elastic.co/t/using-https-on-elastic-agent/362816/2 "2024-07-10T17:47:19Z")

</div>

Thanks for reaching out, @Victor_Santana. What have you tried that didn't work? Did you get an error message? Do you have a code sample you can share?
