In this post we will see how to really generate the certificate and how to use them.

First step is, we have to generate the certificate that is a type X509 for each kafka broker

If you haven’t installed the Kafka server still its ok because we can generate the certificates in any location like you local or in your Kafka installation directory.

Let me create the certificate

Generate the key and certificate for each machine in the cluster by using below command
keytool -keystore server.keystore.jks -alias localhost -validity {validity} -genkey
 
Eg: keytool -keystore server.keystore.jks -alias localhost -validity 365 -genkey
Note: Remember the Key store password and Key password which is used in next steps
Tags:






Youtube
Facebook
Google Plus
Twitter
TutorialDrive


Apache Zookeeper Tutorial

Apache Kafka Tutorial

Apache Kafka Security

Elasticserarch n Kibana

Java 8 Tutorial

Log4J Tutorial

Apache Storm Tutorial

SQLite Tutorial

Apache Ant Tutorial

Related Posts

blog

Apache Kafka Commands Cheat sheet

Spread the loveKafka Topics List existing topics bin/kafka-topics.sh –zookeeper localhost:2181 –list Purge a topic bin/kafka-topics.sh –zookeeper localhost:2181 –alter –topic mytopic –config retention.ms=1000 … wait a minute … bin/kafka-topics.sh –zookeeper localhost:2181 –alter –topic mytopic –delete-config retention.ms
Read more…

blog

What is Apache Maven | Apache Maven complete tutorial from scratch pdf

Spread the love In this post you will learn the complete tutorial of Apache Maven build tool What is Maven ? Apache Maven is a software project management and comprehension tool. Based on the concept
Read more…

blog

Practical Guide for Web Development in 2018

Spread the loveWelcome to my practical guide  for web development in 2018 in terms of  technology and career. Before we start I just want to  mention a few things, you don’t need to learn  everything that
Read more…