# Heartbeat remote error: tls: handshake failure

**URL:** <https://discuss.elastic.co/t/heartbeat-remote-error-tls-handshake-failure/274999>\
**Category:** Beats\
**Tags:** elastic-stack-security, heartbeat\
**Created:** [June 4, 2021, 4:13pm UTC](https://discuss.elastic.co/t/heartbeat-remote-error-tls-handshake-failure/274999 "2021-06-04T16:13:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaclav1](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaclav1](https://discuss.elastic.co/u/vaclav1)\
**Post date:** [June 4, 2021, 4:13pm UTC](https://discuss.elastic.co/t/heartbeat-remote-error-tls-handshake-failure/274999/1 "2021-06-04T16:13:35Z")

</div>

Dear team,

I recently enabled TLS on http and wanted to configure heartbeat to communicate with els on HTTPS. I have done following configuration:

```auto
# ----------------------------------- ElasticSearch connection -----------------------------------
output.elasticsearch.hosts: [https://10.194.144.62:9200, https://10.194.144.63:9200]

# ------------------------------------ Security ------------------------------------
output.elasticsearch.api_key: evMy13kBNwLYJDcmQhTN:GeC-EovQSseEspoylykioQ
output.elasticsearch.ssl.certificate_authorities:
  - /app/products/heartbeat/conf/certs/elasticsearch-ca.pem

```

But when I start heartbeat I see the following:

```auto
2021-06-04T18:10:50.771+0200	ERROR	[publisher_pipeline_output]	pipeline/output.go:154	Failed to connect to backoff(elasticsearch(https://10.194.144.63:9200)): Get "https://10.194.144.63:9200": remote error: tls: handshake failure

```

Any hints? I have client auth on Elasticsearch set as optional so certificate shall not be requested, but still it fails.

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [June 7, 2021, 10:53am UTC](https://discuss.elastic.co/t/heartbeat-remote-error-tls-handshake-failure/274999/2 "2021-06-07T10:53:07Z")

</div>

Could you please share debug logs?

---

<div class="post-metadata">

**Author:** ![vaclav1](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaclav1](https://discuss.elastic.co/u/vaclav1)\
**Post date:** [June 7, 2021, 10:55am UTC](https://discuss.elastic.co/t/heartbeat-remote-error-tls-handshake-failure/274999/3 "2021-06-07T10:55:26Z")

</div>

How do I do that? I have changed: logging.level: debug but there is no more information printed.

---

<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 5, 2021, 12:56pm UTC](https://discuss.elastic.co/t/heartbeat-remote-error-tls-handshake-failure/274999/4 "2021-07-05T12:56:19Z")

</div>

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