Description
In SSL replication, when target cluster is of version 4.0 and up, XDCR attempts to do server name check in tls handshake. This is done incorrectly, though, and the server name check is effectively skipped. This creates an unnecessary vulnerability that needs to be fixed.