Caught exception while handling client http traffic, closing connection

While adding fleet I have this warning in elasticsearch repeatedly

log:

[chamber1] caught exception while handling client http traffic, closing connection
 Netty4HttpChannel{localAddress=/192.168.1.78:9200, remoteAddress=/192.168.1.131:58684}
io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate

My fleet conf is


./elastic-agent install --url=https://mail.sbatest1.com:8220 \
  --fleet-server-es=https://192.168.1.78:9200 \
  --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE3MTMzMzI5ODQ1MDc6eWJ6a2pWQzBRdTZUbXZpWlBhR1hpQQ \
  --fleet-server-policy=fleet-server-policy \
  --certificate-authorities=/tmp/certs/ca.crt \
  --fleet-server-es-ca=/tmp/certs/http_ca.crt \
  --fleet-server-cert=/tmp/certs/fleet-server.crt \
  --fleet-server-cert-key=/tmp/certs/fleet-server.key \
  --fleet-server-port=8220
1 Like

It sounds like something is wrong with the certificate or CA config. Are you sure the fleet-server-es-ca is correct?

Not sure , But after i tried with finger print without mentioning the certificate elasticsearch automatically creates certificate for fleet.

And then I didnt look upon the same error

thanks for the reply