title: Specify SSL details for Kafka brokers in python
body: <p>I need to connect to kafka instance which has multiple brokers with SSL.
  I am using kafka-python to consume and process data. </p>
  
  <p>I have seen link where they used kafka-python to connect to single broker with SSL.</p>
  
  <p>Link : <a href="http://maximilianchrist.com/python/databases/2016/08/13/connect-to-apache-kafka-from-python-using-ssl.html" rel="nofollow noreferrer">http://maximilianchrist.com/python/databases/2016/08/13/connect-to-apache-kafka-from-python-using-ssl.html</a></p>
  
  <p>Specific code </p>
  
  <pre><code>consumer = KafkaConsumer(bootstrap_servers='my.server.com',
                            security_protocol='SSL',
                            ssl_check_hostname=True,
                            ssl_cafile='CARoot.pem',
                            ssl_certfile='certificate.pem',
                            ssl_keyfile='key.pem')
  </code></pre>
  
  <p>I need to know since there are multiple brokers how to specify multiple ssl_ca, ssl_cert, ssl_key in constructor ??</p>