I'm looking into an app for work. It needs to connect to both a mongo and Kafka server using SSL or something, but different keys basically.

So need to load a jks file in the main() I think except I have 2 files.

I don't remember exactly how it works but I guess need to combine them into 1?

How do I load each though in app? Need to tell mongo, kafkaClient with one to use?

  • 0
    What's confusing is I can also specify I think in the Mongo/KafkaClient init, to use the individual jks...I think

    Instead of in main(): System.setProperties("javax.ssl...") or whatever the proprrty name is...
Add Comment