File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,26 @@ More info here:
229229https://github.com/edenhill/librdkafka/wiki/Broker-version-compatibility
230230
231231
232+ SSL certificates
233+ ================
234+ If you're connecting to a Kafka cluster through SSL you will need to configure
235+ the client with ` 'security.protocol': 'SSL' ` (or ` 'SASL_SSL' ` if SASL
236+ authentication is used).
237+
238+ The client will use CA certificates to verify the broker's certificate.
239+ The embedded OpenSSL library will look for CA certificates in ` /usr/lib/ssl/certs/ `
240+ or ` /usr/lib/ssl/cacert.pem ` . CA certificates are typically provided by the
241+ Linux distribution's ` ca-certificates ` package which needs to be installed
242+ through ` apt ` , ` yum ` , et.al.
243+
244+ If your system stores CA certificates in another location you will need to
245+ configure the client with ` 'ssl.ca.location': '/path/to/cacert.pem' ` .
246+
247+ Alternatively, the CA certificates can be provided by the [ certifi] ( https://pypi.org/project/certifi/ )
248+ Python package. To use certifi, add an ` import certifi ` line and configure the
249+ client's CA location with ` 'ssl.ca.location': certifi.where() ` .
250+
251+
232252Prerequisites
233253=============
234254
You can’t perform that action at this time.
0 commit comments