I am using io netty version 4.1.19.Final I am trying to set up a client which will connect to a server using TLS. I want the netty to perform hostname validation when it receives TLS certificates, but it looks like since I am using a custom trustManager using TLS Trust file path netty skips hostname validation completely. Is there a way for me to specify a custom trustManager using TLS Trust file path AND have io netty perform hostname validation???? Netty API:- https://netty.io/4.0/api/io/netty/handler/ssl/SslContextBuilder.html#trustManager-java.io.File- Have posted the same question on stack overflow:- |