[
https://issues.apache.org/jira/browse/CAMEL-19691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17750088#comment-17750088
]
Claus Ibsen commented on CAMEL-19691:
-------------------------------------
You are welcome to send a PR
> camel-kafka - Allow sslKeystorePassword to be blank
> ---------------------------------------------------
>
> Key: CAMEL-19691
> URL: https://issues.apache.org/jira/browse/CAMEL-19691
> Project: Camel
> Issue Type: Bug
> Components: camel-kafka
> Affects Versions: 3.21.0
> Reporter: Jake Mehring
> Priority: Minor
>
> Currently if you try to load a keystore with a blank password camel overrides
> the blank to be null. You can work around this by forcing the blank into the
> kafka config by setting it via "additionalProperties.ssl.keystore.password".
>
> Relevant Code:
> [Producer
> Config|https://github.com/apache/camel/blob/main/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java#L435]
> [Consumer
> Config|https://github.com/apache/camel/blob/main/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java#L516]
>
> Solution is probably just to use addPropertyIfNotNull instead of
> addPropertyIfNotEmpty for this property.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)