# .NET client connect to elastic search using SSL

**URL:** <https://discuss.elastic.co/t/net-client-connect-to-elastic-search-using-ssl/339554>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [July 28, 2023, 1:43pm UTC](https://discuss.elastic.co/t/net-client-connect-to-elastic-search-using-ssl/339554 "2023-07-28T13:43:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilesh\_Jethwani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nilesh_jethwani/32/118570_2.png) [@Nilesh\_Jethwani](https://discuss.elastic.co/u/Nilesh_Jethwani)\
**Post date:** [July 28, 2023, 1:43pm UTC](https://discuss.elastic.co/t/net-client-connect-to-elastic-search-using-ssl/339554/1 "2023-07-28T13:43:53Z")

</div>

We want to connect our .NET application to elasticsearch 8.5.2 single node cluster.  
We want to use https and ssl communication.

We have 3 certificates from our CA.  
root , intermediate and main along with private key.

The certificates have been imported to the browser to disable security warning.

We want our .NET code to use SSL communication with the ES server .

Please share the steps we need to do on client machine and sample code if possible.

---

<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:** [August 25, 2023, 1:44pm UTC](https://discuss.elastic.co/t/net-client-connect-to-elastic-search-using-ssl/339554/2 "2023-08-25T13:44:09Z")

</div>

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