title: Kafka SSL security Setup causing issue
body: <p>I will start telling by what i am trying to achieve. So My setup is:</p>
  
  <ol>
  <li><p>6 VM's running Ubuntu 14.04 Version. - In 3 of them i have setup Kafka and in 3 i have created the zookeeper instance.</p></li>
  <li><p>I start the produce and consume and all seems to work fine no issue.</p></li>
  </ol>
  
  <p>Now i want to secure the setup using the SSL which has come up with kafka 0.9 version. I only want to setup SSL between client and kafka broker so that they can communicate securely. I followed the folowing <a href="http://docs.confluent.io/2.0.0/kafka/ssl.html" rel="nofollow noreferrer">link</a>. </p>
  
  <p>The only change i have done is: i have replaced the localhost with the IP of the kafka broker as i have 6 VM's running on same network.</p>
  
  <p>Where i am getting stuck is after generating the the certificates when i run the following command:</p>
  
  <pre><code>openssl s_client -debug -connect localhost:9093 -tls1 
  </code></pre>
  
  <p>I get the message connect: </p>
  
  <blockquote>
    <p>Connection refused connect:errno=111</p>
  </blockquote>
  
  <p>I dont know how to proceed with this. I tried googling going through the documents but couldn't fine anything.</p>
  
  <p>Also some suggestion what will be the ideal setup for security, my req is i only need secure communication between kafka client and brokers, i dont need to worry about kafka-to-kafka and kafka-to-zookeeper communication.</p>
  
  <p>Please help,
  Vishesh.</p>