title: How to provide SSL configuration for spring-cloud-starter-bus-kafka 1.2.0.RELEASE
body: <p>I am using Spring Boot 1.5.6.RELEASE, Spring Cloud Config 1.3.2.RELEASE, and Spring Cloud Starter Bus (Kafka) 1.2.0.RELEASE, and the Kafka version is 0.10.1.1.  I am trying to configure it to use two ssl-enabled brokers, but I end up getting a repeated sequence of warning messages (one for each broker) that looks like this:</p>
  
  <pre><code>Bootstrap broker broker1:9993 disconnected
  Bootstrap broker broker2:9993 disconnected
  </code></pre>
  
  <p>In my configuration, I have (just the relevant portion included here):</p>
  
  <pre><code>spring:
      cloud:
          stream:
              kafka:
                  binder:
                      zkNodes: zkhost1:2181,zkhost2:2181
                      brokers: broker1:9993,broker2:9993
                      configuration:
                          security.protocol: SSL
                          ssl.enabled.protocols: TLSv1.1,TLSv1.2
                          ssl.endpoint.identification.algorithm: HTTPS
  </code></pre>
  
  <p>However, when ProducerConfig and ConsumerConfig spit out their configuration values, they both indicate:</p>
  
  <pre><code>security.protocol = PLAINTEXT
  ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
  ssl.endpoint.identification.algorithm = null
  </code></pre>
  
  <p>Also, I get the following warning messages:</p>
  
  <pre><code>The configuration 'key.deserializer' was supplied but isn't a known config.
  The configuration 'value.deserializer' was supplied but isn't a known config.
  The configuration 'ssl' was supplied but isn't a known config.
  The configuration 'security' was supplied but isn't a known config.
  </code></pre>
  
  <p>I am going to need to add configuration for the truststore, keystore, and their passwords and store types, and I would also like to know how to provide those without hard-coding them in the yaml configs.  My preferred method is to populate these config properties with jvm properties.</p>
  
  <p>Any idea what I'm doing wrong?</p>
  
  <p>Here is an interesting update after trying various things.  If I create a @Configuration class annotated with @EnableKafkaStreams, I can create a StreamsConfig with all of the various properties configured as specified, but this creates a new and separate producer and consumer.  The spring cloud bus kafka producer and consumer are still not configured beyond the defaults.</p>