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
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
Update, since Kafka 2.7 PEM keys and certificates are supported.
You need to set ssl.keystore.type
/ssl.certificate.type
to PEM
and then use ssl.keystore.key
, ssl.keystore.certificate.chain
and ssl.truststore.certificates
to provide your keys and certificates.
Original answer
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.