Kafka application fails with SSLHandshakeException

Symptoms

When a Java application attempts to connect to the Event Gateway, it fails to establish an SSL connection, and throws the following exception:

javax.net.ssl.SSLHandshakeException: Received fatal alert: protocol_version

Causes

The Event Gateway default deployment is to only allow TLS v1.3 application connections. The version of Java being used to run the application does not support this level of the TLS protocol.

Resolving the problem

To resolve the problem, configure the Event Gateway deployment to support older versions of the TLS protocol by setting an environment variable for TLS_VERSIONS. For example:

# Event Gateway CRD 
    env:
    - name: TLS_VERSIONS
      value: 'TLSv1.2,TLSv1.3'