Configure SSL connections with Apache Kafka
- Last Updated: July 5, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
security.protocol property and, optionally, the ssl.ca.location property:| Kafka property | Value |
|---|---|
security.protocol |
SSL |
ssl.ca.location
(optional) |
server_certificate_authority_file |
Where server_certificate_authority_file is a path to the x509 server certificate file in a format supported by openssl.
The librdkafka library uses the openssl library and supports retrieving certificates from
the operating system if they are installed, rather than specifying the ssl.ca.location file name explicitly. If the certificate
chain for the Kafka broker is installed, then Kafka uses that and there is no need to
set the ssl.ca.location file name. In this case, only
the security.protocol setting is required to indicate
SSL connections should be used.
The next sections describe how to set these properties for a producer builder and for a consumer builder.
Producer
security.protocol property using
either the SetProducerOption() method or the
strongly-typed method, SetSecurityProtocol():
|
Set the ssl.ca.location property using
the SetProducerOption() method.
|
Consumer
security.protocol property using
either the SetConsumerOption() method or the
strongly-typed method, SetSecurityProtocol():
|
ssl.ca.location property using
the SetConsumerOption() method.
|
Troubleshooting errors related to SSL
Errors related to SSL (for example, if ssl.ca.location is not set or if the SSL certificate is not installed)
result in timeouts for sending (in the producer) or polling (in the consumer). You
can Enable logging on the client to help
troubleshoot any issues. Set the Progress® OpenEdge® log entry type to MESSAGING and the logging level to 2 or higher. In addition, set the
Kafka "log_level" option to 2 or higher.
|
|