A hostname verifier is useful when an SSL client connects to an application server on a remote host. This ensures that the hostname in the URL to which the client tries to connects matches with the hostname in the digital certificate that the server sends back as a part of the SSL handshake. Host name verification is performed only by an SSL client.
ERROR — TargetHandler I/O error: Host name verification failed for host : 72.20.5.110
javax.net.ssl.SSLException: Host name verification failed for host : <host-name> at org.apache.synapse.transport.http.conn.ClientSSLSetupHandler.verify(ClientSSLSetupHandler.java:152) at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:285)
How WebClient verifies the server host name by default and how can we disable this?