# Remote reindex fail for HTTPS

**URL:** <https://discuss.elastic.co/t/remote-reindex-fail-for-https/109825>\
**Category:** Elasticsearch\
**Created:** [November 30, 2017, 7:18pm UTC](https://discuss.elastic.co/t/remote-reindex-fail-for-https/109825 "2017-11-30T19:18:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkoothrappahli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkoothrappahli/32/31959_2.png) [@nkoothrappahli](https://discuss.elastic.co/u/nkoothrappahli)\
**Post date:** [November 30, 2017, 7:18pm UTC](https://discuss.elastic.co/t/remote-reindex-fail-for-https/109825/1 "2017-11-30T19:18:46Z")

</div>

I face this issue here with X-Pack (5.6.4): [https://github.com/elastic/elasticsearch/issues/27267](https://github.com/elastic/elasticsearch/issues/27267)

I cannot remote reindex to a cluster protected with x-pack (https enabled) cause my ssl certificates are not trusted and i cannot also not leverage PKI authentication.

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [December 1, 2017, 3:57pm UTC](https://discuss.elastic.co/t/remote-reindex-fail-for-https/109825/2 "2017-12-01T15:57:55Z")

</div>

Hi Nanda,

If I understand your issue, if you generated self-signed certificates for Elasticsearch you might be able to add those certificates to your "remote" system so that they are trusted.

Otherwise, I think you could just watch that issue you listed and/or ask additional questions there (like is there a work-around).

I'm going to just paste a chunk of bash script code I use during some testing. It covers several OSs.

```auto
case $OS in
ubuntu)
  cp $QADIR/../certs/ca/ca.crt /usr/local/share/ca-certificates/
  cp $QADIR/../certs/elasticsearch/elasticsearch.crt /usr/local/share/ca-certificates/
  cp $QADIR/../certs/kibana/kibana.crt /usr/local/share/ca-certificates/
  update-ca-certificates

  echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
  echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
  echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf
  sysctl -p
  cat /proc/sys/net/ipv6/conf/all/disable_ipv6
  ;;
centos)
  sudo update-ca-trust force-enable
  cp $QADIR/../certs/ca/ca.crt /etc/pki/ca-trust/source/anchors/
  cp $QADIR/../certs/elasticsearch/elasticsearch.crt /etc/pki/ca-trust/source/anchors/
  cp $QADIR/../certs/kibana/kibana.crt /etc/pki/ca-trust/source/anchors/
  sudo update-ca-trust extract
  ;;
windows)
  certutil -addstore root $QADIR/../certs/ca/ca.crt

```

Regards,  
Lee

---

<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:** [December 29, 2017, 3:58pm UTC](https://discuss.elastic.co/t/remote-reindex-fail-for-https/109825/3 "2017-12-29T15:58:16Z")

</div>

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