Search code examples
sslapache-kafkakafka-consumer-apikafka-producer-api

Can I use the same keystore for multiple kafka producer/consumer


I want to use SSL encryption and authentication, but we have many clients and we don't want to generate new keystore for each client, is it possible to use the same keystore for each clients and if yes what are the possible problem with this configuration.


Solution

  • Confluent say that you can't use the same keystore for each client. But you can use the same truststore for all.

    https://docs.confluent.io/2.0.0/kafka/ssl.html#configuring-kafka-clients