summaryrefslogtreecommitdiff
path: root/kafka/producer/kafka.py
diff options
context:
space:
mode:
Diffstat (limited to 'kafka/producer/kafka.py')
-rw-r--r--kafka/producer/kafka.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/kafka/producer/kafka.py b/kafka/producer/kafka.py
index ccdd91a..e4d5929 100644
--- a/kafka/producer/kafka.py
+++ b/kafka/producer/kafka.py
@@ -245,6 +245,11 @@ class KafkaProducer(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, the client will attempt to infer the broker version by probing
various APIs. Example: (0, 10, 2). Default: None
@@ -312,6 +317,7 @@ class KafkaProducer(object):
'ssl_keyfile': None,
'ssl_crlfile': None,
'ssl_password': None,
+ 'ssl_ciphers': None,
'api_version': None,
'api_version_auto_timeout_ms': 2000,
'metric_reporters': [],