Filebeat is configured to talk to kafka over tls, but it fails with "INFO kafka/log.go:36 Failed to connect to broker : tls: first record does not look like a TLS handshake"
openssl s_client, using the same key, ca and cert, is able to connect.
Wireshark shows "Ignored Unknown Record" where the openssl connection has "Server Hello".
Relevant version info:
go1.10 linux/amd64
filebeat 7.0.0-alpha1 (amd64), libbeat 7.0.0-alpha1 [unknown built unknown]
Kafka requires some connection bootstrapping protocol. The bootstrapping first gets the cluster metadata from one of the brokers first. The meta-data is used to connect to the brokers. Check the kafka brokers advertised listeners actually configuring TLS.
Just using openssl s_client is only testing the initial connection during the bootstrap. The final step of actually connecting to the clusters is not simulated by openssl s_client.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.