Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to disable hostname validation on jetty embedded server 9.x version


Dear All,

Can someone help me with this problem?

















De: Luis Morales Alcala
Enviado: miércoles, 9 de mayo de 2018 16:38
Para: jetty-users@xxxxxxxxxxx; jetty-dev@xxxxxxxxxxx
Asunto: How to disable hostname validation on jetty embedded server 9.x version
 

Dear all
Currently I have a Verison 9.3.x Embedded Jetty server working perfectly offering websockets communications through port 8080 and through 8443 for secure communications.
I need to disable the validation of the hostname as well as the certificates but I can not disable it.

I am using the method setTrustAll and setEndpointIdentificationAlgorithm(null) but the hostname verification is still activated.
sslContextFactory.setTrustAll(true);
sslContextFactory.setEndpointIdentificationAlgorithm(null);
How can avoid it?

Best regards


Back to the top