Dear team,
I recently enabled TLS on http and wanted to configure heartbeat to communicate with els on HTTPS. I have done following configuration:
# ----------------------------------- 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:
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.