summaryrefslogtreecommitdiff
path: root/kafka/client_async.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2019-03-21 08:32:45 -0700
committerDana Powers <dana.powers@gmail.com>2019-03-21 08:32:45 -0700
commitac7efc0426fa641a6754c25a9b2e5e2fa3515bf6 (patch)
treebe41549b0f4b3d02e95a80665ede862302cb3fe1 /kafka/client_async.py
parentee4a53e9e5ae93231d6f7010f263b30a9924dabb (diff)
downloadkafka-python-ssl_set_ciphers.tar.gz
Allow configuration of SSL Ciphersssl_set_ciphers
Diffstat (limited to 'kafka/client_async.py')
-rw-r--r--kafka/client_async.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/kafka/client_async.py b/kafka/client_async.py
index fdf5454..90cce0c 100644
--- a/kafka/client_async.py
+++ b/kafka/client_async.py
@@ -123,6 +123,11 @@ class KafkaClient(object):
providing a file, only the leaf certificate will be checked against
this CRL. The CRL can only be checked with Python 3.4+ or 2.7.9+.
Default: None.
+ ssl_ciphers (str): optionally set the available ciphers for ssl
+ connections. It should be a string in the OpenSSL cipher list
+ format. If no cipher can be selected (because compile-time options
+ or other configuration forbids use of all the specified ciphers),
+ an ssl.SSLError will be raised. See ssl.SSLContext.set_ciphers
api_version (tuple): Specify which Kafka API version to use. If set
to None, KafkaClient will attempt to infer the broker version by
probing various APIs. Example: (0, 10, 2). Default: None
@@ -173,6 +178,7 @@ class KafkaClient(object):
'ssl_keyfile': None,
'ssl_password': None,
'ssl_crlfile': None,
+ 'ssl_ciphers': None,
'api_version': None,
'api_version_auto_timeout_ms': 2000,
'selector': selectors.DefaultSelector,