# Encrypted Communications reloading certificate

**URL:** <https://discuss.elastic.co/t/encrypted-communications-reloading-certificate/272686>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [May 11, 2021, 11:23am UTC](https://discuss.elastic.co/t/encrypted-communications-reloading-certificate/272686 "2021-05-11T11:23:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewolfman](https://avatars.discourse-cdn.com/v4/letter/e/5f8ce5/32.png) [@ewolfman](https://discuss.elastic.co/u/ewolfman)\
**Post date:** [May 11, 2021, 11:23am UTC](https://discuss.elastic.co/t/encrypted-communications-reloading-certificate/272686/1 "2021-05-11T11:23:33Z")

</div>

Hi,

ES client allows loading the certificate for trust as described [here](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/_encrypted_communication.html#_encrypted_communication).

But what happens if the certificate changes? Is there a way to reload the certificate (e.g. recreate the sslContext context?) without having to recreate the RestHighLevelClient?

Thanks.

---

<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:** [June 8, 2021, 11:24am UTC](https://discuss.elastic.co/t/encrypted-communications-reloading-certificate/272686/2 "2021-06-08T11:24:01Z")

</div>

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