# How do I transfer certificate from one cluster to another?

**URL:** <https://discuss.elastic.co/t/how-do-i-transfer-certificate-from-one-cluster-to-another/304703>\
**Category:** Elasticsearch\
**Created:** [May 13, 2022, 5:43pm UTC](https://discuss.elastic.co/t/how-do-i-transfer-certificate-from-one-cluster-to-another/304703 "2022-05-13T17:43:12Z")\
**Posts on this page:** 3\
**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:** [May 13, 2022, 5:43pm UTC](https://discuss.elastic.co/t/how-do-i-transfer-certificate-from-one-cluster-to-another/304703/1 "2022-05-13T17:43:12Z")

</div>

Hi Team,

I need to move data from my single node cluster to another. I have around 80 Windows servers which are connected to Elasticsearch through elastic agent and this communication I believe happens through certificate. How and which certificates I should transfer to another cluster node so that windows hosts would start sending a logs to other Elasticsearch?

Or if any other procedure do I need to follow to achieve it?

TIA  
Blason R

---

<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:** [May 13, 2022, 6:21pm UTC](https://discuss.elastic.co/t/how-do-i-transfer-certificate-from-one-cluster-to-another/304703/2 "2022-05-13T18:21:57Z")

</div>

Well I had created certificates using below method and not using p12 format.

```auto
cd /usr/share/elasticsearch/
sudo nano instances.yml

instances:
    - name: "elasticsearch"
      ip:
        - "192.168.0.25"
    - name: "kibana"
      ip:
        - "192.168.0.25"
sudo bin/elasticsearch-certutil ca --pem
sudo unzip elastic-stack-ca.zip
sudo /usr/share/elasticsearch/bin/elasticsearch-certutil cert --ca-cert ca/ca.crt --ca-key ca/ca.key --pem --in instances.yml --out certs.zip
sudo mkdir certs

```

So eventually I believe I would need

```auto
ca.crt
ca.key
elasticsearch.crt  
elasticsearch.key 
 kibana.crt  
kibana.key

```

Copying to another server to their respective directory would help?

---

<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 10, 2022, 6:22pm UTC](https://discuss.elastic.co/t/how-do-i-transfer-certificate-from-one-cluster-to-another/304703/3 "2022-06-10T18:22:22Z")

</div>

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