Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kafka-topics --list using ssl

Tags:

apache-kafka

Can any body help the command to list the kafka topics using SSl .

I have got consumer SSL config and producer SSL config commands but dint find the way to list Kafka topics using SSl.

like image 829
args Avatar asked Dec 10 '19 02:12

args


People also ask

Does Kafka support SSL?

SSL Overview By default, Apache Kafka sends all data as clear text and without any authentication. First of all, we can configure SSL for encryption between the broker and the client. This, by default, requires one-way authentication using public key encryption where the client authenticates the server certificate.

Does Kafka use TLS?

Configure the ports for the Apache Kafka® brokers to listen for client and inter-broker TLS ( SSL ) connections. You should configure listeners , and optionally, advertised. listeners if the value is different from listeners .


Video Answer


1 Answers

You should be able to do that by using the --bootstrap-server option, so specifying Kafka brokers in the bootstrap list, and then the --command-config providing a property file with the admin client configuration parameters.

Inside that properties file you should specify ssl.truststore.location and ssl.truststore.password (eventually ssl.truststore.type) as you normally do for producer and consumer clients.

If TLS client authentication is enabled, you have to set ssl.keystore.location and ssl.keystore.password as well.

like image 199
ppatierno Avatar answered Nov 05 '22 10:11

ppatierno