macronova / kafka-connect-jms

Sink and source capabilities to transfer messages between JMS server and Kafka brokers
Apache License 2.0
16 stars 17 forks source link

truststore file passing as a config #3

Closed jay999123 closed 4 years ago

jay999123 commented 4 years ago

Hi, I've a truststore.jks file and I want to pass it as part of the config. But I don't not see any configuration defined.Is there any other way I can so that?

macronova commented 4 years ago

Is the trust store used to connect to JNDI server or directly JMS? What JMS server you are using? I think we may miss jms.extra.params feature (analogical to jndi.extra.params that is already supported).

jay999123 commented 4 years ago

I'm using the truststore.jks to trust the server that I'm trying to connect to consume the messages from JMS topic. The server is wildfly

jay999123 commented 4 years ago

and also I've to pass the truststore password

macronova commented 4 years ago

I have been looking at configuration options of WildFly client and it seems that it does not expose special configuration for trust store. You should be fine importing the certificate to default trust store used by JVM in Kafka Connect.

jay999123 commented 4 years ago

Along with trust/key store importing, I also need to add jboss specific parameters. Anyway I'm closing the issue as I've added below parameters in the code and made it available as config.

"jms.secured": "true", "jms.keystore.path": "/truststore/truststore.jks", "jms.keypass": "abcdefgh"

Thanks,