Claus Ibsen created CAMEL-27206:
-----------------------------------

             Summary: 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
             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