conduktor.io ↗

Kafka Exception SslAuthenticationException

org.apache.kafka.common.errors.SslAuthenticationException
Non-retriable Security

This exception indicates that SSL handshake has failed. See getCause() for the SSLException that caused this failure. SSL handshake failures in clients may indicate client authentication failure due to untrusted certificates if server is configured to request client certificates. Handshake failures could also indicate misconfigured security including protocol/cipher suite mismatch, server certificate authentication failure or server host name verification failure.

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.SslAuthenticationException: SSL handshake failed Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Diagnostic Commands

# Inspect the broker's presented certificate chain openssl s_client -connect localhost:9093 -servername localhost </dev/null 2>/dev/null | openssl x509 -noout -subject -dates

Related

Related Security exceptions: AuthenticationException · AuthorizationException · AuthorizerNotReadyException · ClusterAuthorizationException · GroupAuthorizationException · IllegalSaslStateException · SaslAuthenticationException · TopicAuthorizationException

Hitting SslAuthenticationException in production? Conduktor Console gives you real-time visibility into clients, consumer groups, and broker health. Browse every Kafka exception or protocol error code.