0

The documentation at http://kafka.apache.org/documentation/#security describes the process of enabling security in Kafka.

It describes the certificates to be in JKS format. Is it possible to use PEM formatted certificates with Kafka?

-Yash

Yash
  • 842
  • 1
  • 11
  • 24

2 Answers2

3

You'll be able to use PEM in Kafka after 2.7.0 is released. Details here. Currently you can also use PKCS12.

Hex
  • 232
  • 7
  • 20
-2

No you cannot directly use PEM certificates with Kafka.

This is not a Kafka restriction, it's just that all of the "mainstream" JVMs (HotSpot, OpenJDK, J9) use JKS.

See Import .key and .pem file to jks file and use in Java/Spring for the required steps to import a PEM file into a JKS store.

Mickael Maison
  • 21,781
  • 7
  • 57
  • 53