# How do I restore certificate created on one node to other?

**URL:** <https://discuss.elastic.co/t/how-do-i-restore-certificate-created-on-one-node-to-other/296377>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 6, 2022, 5:56am UTC](https://discuss.elastic.co/t/how-do-i-restore-certificate-created-on-one-node-to-other/296377 "2022-02-06T05:56:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blason/32/42284_2.png) [@Blason](https://discuss.elastic.co/u/Blason)\
**Post date:** [February 6, 2022, 5:56am UTC](https://discuss.elastic.co/t/how-do-i-restore-certificate-created-on-one-node-to-other/296377/1 "2022-02-06T05:56:31Z")

</div>

Hi Team,

I have created one setup for testing purpose where I installed complete elasticstack on one host with complete certificates.

In case if that host is crashed and If I need to resinstall the new host; how do I restore the certs from existing server to new server so that elastic-agent can start communicating to new server?

TIA  
Blason R

---

<div class="post-metadata">

**Author:** ![fgjensen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fgjensen/32/62320_2.png) [@fgjensen](https://discuss.elastic.co/u/fgjensen)\
**Post date:** [February 6, 2022, 9:24am UTC](https://discuss.elastic.co/t/how-do-i-restore-certificate-created-on-one-node-to-other/296377/2 "2022-02-06T09:24:17Z")

</div>

Hi @Blason

I think a many possibilities depending on in which context your are using Elastic.

The simplest approach would probably be to store the certificates in a Java key store and push the key store to your git repository.

If your setup is production you could build your could combine git with a certificate package building tool like apt or chocolatey.

You could also take a look at tools like Terraform or Ansible.

Best regards  
@fgjensen

---

<div class="post-metadata">

**Author:** ![Blason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blason/32/42284_2.png) [@Blason](https://discuss.elastic.co/u/Blason)\
**Post date:** [February 7, 2022, 2:39am UTC](https://discuss.elastic.co/t/how-do-i-restore-certificate-created-on-one-node-to-other/296377/3 "2022-02-07T02:39:51Z")

</div>

Well I have SIEM server where my certificates is pushed to all windows servers and in case the serves crashes I can restore the server and wanted to restore the certificates as well so that they can start communicating immediately.

---

<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:** [March 7, 2022, 2:40am UTC](https://discuss.elastic.co/t/how-do-i-restore-certificate-created-on-one-node-to-other/296377/4 "2022-03-07T02:40:11Z")

</div>

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