SSL keystore/truststore configuration #203
-
Hi, How can we add following SSL keystore/truststore configuration to kafka producer? I don't see any of these properties declared in securityFactory.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I agree, I don't see the bottom 4 config values in either So, even though the properties you want aren't explicitly defined on a security factory, you should still be able to set those values by using the bundle constructor that takes two parameters, where the second is: The |
Beta Was this translation helpful? Give feedback.
I agree, I don't see the bottom 4 config values in either
SslSecurityFactory
orSecurityFactory
. The first,security.protocol
is covered by using theSslSecurityFactory
via thesecurityProtocol
property.So, even though the properties you want aren't explicitly defined on a security factory, you should still be able to set those values by using the bundle constructor that takes two parameters, where the second is:
Map<String, Object> configOverrides
.The
configOverrides
values get merged in with all the other config values that are generated from the various config factories, so the ultimately configured/built kafka client will receive those key/value combinations.