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.
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.
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.
As of my knowledge, the Consumer and Producer SSL config does not actually make a difference if you want to fetch the list of Kafka topics. Just simply try the cli command:
./bin/kafka-topics --zookeeper localhost:2181 --list
or
./bin/kafka-topics.sh --zookeeper localhost:2181 --list
/bin/kafka-topics.sh --zookeeper localhost:2181 --list--bootstrap and the TLS broker list instead works, and kafka-topics.sh accepts the --command-config option. The config file requires only security.protocol=SSL (unless you're using client certificates.)