jlandersen / vscode-kafka

Apache Kafka® extension for Visual Studio Code
MIT License
97 stars 33 forks source link

how to use jks instead pem ? #216

Open spham opened 2 years ago

spham commented 2 years ago

how to use kafka.client.truststore.jks instead of file in pem format ?

image

angelozerr commented 2 years ago

I fear that's it's not possible. We provide common authentification. It's hard with an UI to manage all authentification kind.

@fbricon do you think we should provide jks?

fbricon commented 2 years ago

According to https://github.com/tulios/kafkajs/issues/1127#issuecomment-867554450, kafkajs doesn't provide a way to use keystores directly, they should be converted to PEM files first. Maybe there's a way to use https://www.npmjs.com/package/jks-js to do that automagically

karawitan commented 1 year ago

As far as I know, client certificate/key is optional, only Certificate Authority is mandatory. Is it possible to handle this situation ? (only provide Certificate Authority, let client certificate/key empty)

revskill10 commented 1 year ago

Is there any solution ?

angelozerr commented 1 year ago

I m a newbie with jks and I have no time to investigate some solution. Any contribution are welcome!