# How can resolve SSL handshake issue on reindex from remote

**URL:** <https://discuss.elastic.co/t/how-can-resolve-ssl-handshake-issue-on-reindex-from-remote/135209>\
**Category:** Elasticsearch\
**Created:** [June 9, 2018, 3:30am UTC](https://discuss.elastic.co/t/how-can-resolve-ssl-handshake-issue-on-reindex-from-remote/135209 "2018-06-09T03:30:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesjin](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jamesjin](https://discuss.elastic.co/u/jamesjin)\
**Post date:** [June 9, 2018, 3:30am UTC](https://discuss.elastic.co/t/how-can-resolve-ssl-handshake-issue-on-reindex-from-remote/135209/1 "2018-06-09T03:30:28Z")

</div>

hi,

Now I am trying to reindex from a remote to my local. remote is a https host, I am getting SSL handshake exception as following, I checked there was similar issue but not sure how to resolve it

> [@Reindex from remote cluster which has https enabled](https://discuss.elastic.co/t/reindex-from-remote-cluster-which-has-https-enabled/112709):
>
> 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"…

Please advise, thanks

```
{
    "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
}

```

---

<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:** [July 7, 2018, 3:30am UTC](https://discuss.elastic.co/t/how-can-resolve-ssl-handshake-issue-on-reindex-from-remote/135209/2 "2018-07-07T03:30:32Z")

</div>

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