# Reindex from remote cluster which has https enabled

**URL:** <https://discuss.elastic.co/t/reindex-from-remote-cluster-which-has-https-enabled/112709>\
**Category:** Elasticsearch\
**Created:** [December 20, 2017, 8:02pm UTC](https://discuss.elastic.co/t/reindex-from-remote-cluster-which-has-https-enabled/112709 "2017-12-20T20:02:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![askids](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/askids/32/22252_2.png) [@askids](https://discuss.elastic.co/u/askids)\
**Post date:** [December 20, 2017, 8:02pm UTC](https://discuss.elastic.co/t/reindex-from-remote-cluster-which-has-https-enabled/112709/1 "2017-12-20T20:02:15Z")

</div>

hi,

I am trying to reindex from a remote source which has SSL enabled. When I use a https host name, I get SSL handshake exception.

Is there a way to pass the certificate path to a reindex from remote request? I checked the documentation and dont see these details.

```
{
  "error": {
    "root_cause": [
      {
        "type": "s_s_l_handshake_exception",
        "reason": "General SSLEngine problem"
      }
    ],
    "type": "s_s_l_handshake_exception",
    "reason": "General SSLEngine problem",
    "caused_by": {
      "type": "s_s_l_handshake_exception",
      "reason": "General SSLEngine problem",
      "caused_by": {
        "type": "validator_exception",
        "reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",
        "caused_by": {
          "type": "sun_cert_path_builder_exception",
          "reason": "unable to find valid certification path to requested target"
        }
      }
    }
  },
  "status": 500
}

```

Thanks!

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [December 21, 2017, 12:33am UTC](https://discuss.elastic.co/t/reindex-from-remote-cluster-which-has-https-enabled/112709/2 "2017-12-21T00:33:46Z")

</div>

need set ssl valitue false?

---

<div class="post-metadata">

**Author:** ![askids](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/askids/32/22252_2.png) [@askids](https://discuss.elastic.co/u/askids)\
**Post date:** [December 21, 2017, 2:43pm UTC](https://discuss.elastic.co/t/reindex-from-remote-cluster-which-has-https-enabled/112709/3 "2017-12-21T14:43:46Z")

</div>

ES endpoint has SSL enabled. So I cannot disable SSL just for reindexing.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [December 26, 2017, 12:53am UTC](https://discuss.elastic.co/t/reindex-from-remote-cluster-which-has-https-enabled/112709/4 "2017-12-26T00:53:09Z")

</div>

as i know, you need seting PKI pem . as i remenber elastic have a doc about it.

---

<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:** [January 23, 2018, 12:53am UTC](https://discuss.elastic.co/t/reindex-from-remote-cluster-which-has-https-enabled/112709/5 "2018-01-23T00:53:12Z")

</div>

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