# Curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate

**URL:** <https://discuss.elastic.co/t/curl-51-unable-to-communicate-securely-with-peer-requested-domain-name-does-not-match-the-servers-certificate/357756>\
**Category:** Elasticsearch\
**Created:** [April 19, 2024, 2:32am UTC](https://discuss.elastic.co/t/curl-51-unable-to-communicate-securely-with-peer-requested-domain-name-does-not-match-the-servers-certificate/357756 "2024-04-19T02:32:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Septianingrum.17](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Septianingrum.17](https://discuss.elastic.co/u/Septianingrum.17)\
**Post date:** [April 19, 2024, 2:32am UTC](https://discuss.elastic.co/t/curl-51-unable-to-communicate-securely-with-peer-requested-domain-name-does-not-match-the-servers-certificate/357756/1 "2024-04-19T02:32:01Z")

</div>

Dear All,

currently I have 2 clusters, I want to move data from cluster A to cluster B using the "reindex remote cluster" method. but it happens when running.

 ![devtools](https://us1.discourse-cdn.com/elastic/original/3X/b/e/be133133940f170fe8fdaa40879a3dbc30947d8d.png)

and when running curl on the local server and trying to access the remote cluster the results are as below.

```auto
[root@loc-master1 ca]# curl --cacert /etc/elasticsearch/certs/ca.crt -u elastic 'https://192.168.12.156:9200/_cat/nodes?v'
Enter host password for user 'elastic':
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.

```

can someone help me solve this problem? I am very confused.

Best Regards,  
Septia

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 19, 2024, 4:40pm UTC](https://discuss.elastic.co/t/curl-51-unable-to-communicate-securely-with-peer-requested-domain-name-does-not-match-the-servers-certificate/357756/2 "2024-04-19T16:40:03Z")

</div>

Hi @Septianingrum.17

Run that command again with `-v` and share the output. Pretty sure you have a missmatch in the certs SANs / IPs.

Please show the command in the full output
