From 1646edf7ff6430022acf1c41ca32dd88b971c0cb Mon Sep 17 00:00:00 2001 From: kierkegaard13 Date: Thu, 15 Sep 2016 18:28:59 -0500 Subject: [PATCH] =?UTF-8?q?Added=20ssl=5Fpassword=20config=20option=20to?= =?UTF-8?q?=20KafkaProducer=20class,=20identical=20to=E2=80=A6=20(#830)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added ssl_password config option to KafkaProducer class, identical to option in KafkaConsumer class * removed non-ascii characters * changed - to : in comments --- kafka/client_async.py | 2 ++ kafka/producer/kafka.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/kafka/client_async.py b/kafka/client_async.py index ce1d13b..0849c7b 100644 --- a/kafka/client_async.py +++ b/kafka/client_async.py @@ -136,6 +136,8 @@ class KafkaClient(object): establish the certificate's authenticity. default: none. ssl_keyfile (str): optional filename containing the client private key. default: none. + ssl_password (str): optional password to be used when loading the + certificate chain. default: none. ssl_crlfile (str): optional filename containing the CRL to check for certificate expiration. By default, no CRL check is done. When providing a file, only the leaf certificate will be checked against diff --git a/kafka/producer/kafka.py b/kafka/producer/kafka.py index 3927a72..b13db86 100644 --- a/kafka/producer/kafka.py +++ b/kafka/producer/kafka.py @@ -216,6 +216,8 @@ class KafkaProducer(object): establish the certificate's authenticity. default: none. ssl_keyfile (str): optional filename containing the client private key. default: none. + ssl_password (str): optional password to be used when loading the + certificate chain. default: none. ssl_crlfile (str): optional filename containing the CRL to check for certificate expiration. By default, no CRL check is done. When providing a file, only the leaf certificate will be checked against @@ -280,6 +282,7 @@ class KafkaProducer(object): 'ssl_certfile': None, 'ssl_keyfile': None, 'ssl_crlfile': None, + 'ssl_password': None, 'api_version': None, 'api_version_auto_timeout_ms': 2000, 'metric_reporters': [],