Claus Ibsen created CAMEL-27735:
-----------------------------------

             Summary: camel-tahu: sslContextParameters and 
useGlobalSslContextParameters have no effect
                 Key: CAMEL-27735
                 URL: https://issues.apache.org/jira/browse/CAMEL-27735
             Project: Camel
          Issue Type: Bug
          Components: camel-tahu
            Reporter: Claus Ibsen
             Fix For: 4.24.0


The {{sslContextParameters}} option of {{tahu-edge}} and {{tahu-host}}, and 
{{useGlobalSslContextParameters}} of their components, have no effect.

{{TahuDefaultComponent}} copies the global {{SSLContextParameters}} into the 
endpoint configuration, but {{TahuConfiguration.parseFromUrlString()}} builds 
Tahu's {{MqttServerDefinition(name, clientId, url, username, password, 
keepAliveTimeout, null)}}, and that class (Tahu 1.0.21) has no field for TLS 
settings. Tahu creates its {{TahuClient}}s itself 
({{EdgeClient.connectToTargetServer}}, {{HostApplication}}) with new 
{{MqttConnectOptions}}. So an {{ssl://}} server is checked with the default 
trust store of the JVM, and a configured trust store or client certificate is 
ignored without any message.

Fix: an endpoint with {{sslContextParameters}}, or with 
{{useGlobalSslContextParameters=true}} and a global {{SSLContextParameters}}, 
fails to start with a message that the option cannot be applied and that 
{{ssl://}} servers use the default trust store of the JVM ({{javax.net.ssl.*}} 
system properties). The option descriptions, the doc page and the upgrade guide 
say so.

_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to