# Spark-connector read and write es using ssl with the certificate of pem format

**URL:** <https://discuss.elastic.co/t/spark-connector-read-and-write-es-using-ssl-with-the-certificate-of-pem-format/276594>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [June 22, 2021, 1:33am UTC](https://discuss.elastic.co/t/spark-connector-read-and-write-es-using-ssl-with-the-certificate-of-pem-format/276594 "2021-06-22T01:33:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Min\_Zhao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/min_zhao/32/79805_2.png) [@Min\_Zhao](https://discuss.elastic.co/u/Min_Zhao)\
**Post date:** [June 22, 2021, 1:33am UTC](https://discuss.elastic.co/t/spark-connector-read-and-write-es-using-ssl-with-the-certificate-of-pem-format/276594/1 "2021-06-22T01:33:19Z")

</div>

The es using ssl by PEM certificate, how to set configs to spark-connector, therer are the java client configs below.

 ![CD300F12-85CF-4BB5-B6BA-4DBBD10F2F63](https://us1.discourse-cdn.com/elastic/original/3X/f/f/ff51aa7c429599257ea3927d959f5d28d63c5e73.png)

---

<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 20, 2021, 1:33am UTC](https://discuss.elastic.co/t/spark-connector-read-and-write-es-using-ssl-with-the-certificate-of-pem-format/276594/2 "2021-07-20T01:33:25Z")

</div>

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