[ 
https://issues.apache.org/jira/browse/CAMEL-27206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-27206.
---------------------------------
    Resolution: Fixed

Fixed by https://github.com/apache/camel/pull/30349 (merged to main as 
abf6f8aa83), in 4.24.0.

_Claude Code on behalf of davsclaus_

> camel-nats - check the host name in the certificate of the NATS server when 
> TLS is used
> ---------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27206
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27206
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-nats
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.24.0
>
>
> When camel-nats connects with TLS (secure=true, or a tls:// server address), 
> the certificate of the server is checked against the trust store, but the 
> jnats client does not check that the certificate was issued for the host it 
> connects to.
> Add a hostnameVerification option (default true), as camel-smpp, camel-mina 
> and camel-mllp have, so the connection fails when the certificate does not 
> name the host. Connecting by an IP address, or by a name the certificate does 
> not contain, then needs a certificate with that name, or 
> hostnameVerification=false. To be noted in the upgrade guide.



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

Reply via email to