kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Stopford <...@confluent.io>
Subject Re: Doubt regarding Encryption and Authentication using SSL
Date Wed, 09 Dec 2015 16:07:02 GMT
Hi Ritesh

You just need to create yourself a text file called client-ssl.properties or similar in the
directory your running from.  In that file you put your SSL client information. Something
like this:

security.protocol = SSL
ssl.truststore.location = "/var/private/ssl/kafka.client.truststore.jks"
ssl.truststore.password = "test1234"

If you prefer you can pass these on the command line too with the producer/consumer-property
option too. 

There’s some documentation here <http://docs.confluent.io/2.0.0/kafka/ssl.html#configuring-kafka-clients>
if you’d like more info. 

All the best

Ben


> On 9 Dec 2015, at 14:17, Ritesh Sinha <kumarriteshranjansinha@gmail.com> wrote:
> 
> Hi,
> 
> 
> I am following the kafka documentation to create encryption and
> authentication  while sending message to kafka by ssl
> 
> I got stuck at these commands
> 
> kafka-console-producer.sh --broker-list localhost:9093 --topic test
> --producer.config *client-ssl.properties*
> 
> kafka-console-consumer.sh --bootstrap-server localhost:9093 --topic
> test --new-consumer --consumer.config *client-ssl.properties*
> 
> *I*t is asking for *client-ssl.properties* for producer and consumer
> config. I am not sure what these files are.I am able to follow these
> steps :
> 
> Generate SSL key and certificate for each Kafka broker
> Creating your own CA
> <http://kafka.apache.org/documentation.html#security_ssl_ca>
> Signing the certificate
> Configuring Kafka Brokers
> 
> Can anyone help me in understanding what file does producer config needs
> exactly?
> 
> Thanks in Advance


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message