From an initial look, it appears that this is because we don't pass the hostname when creating the SSLEngine object "createSSLEngine()" ... the issue seems to be fixed when using the constructor that takes the hostname "createSSLEngine(hostname, port)"
This hostname passed is later used in the "match" function for the "String expectedName" in the HostnameChecker.java.
This link might be useful in covering related topics https://github.com/AsyncHttpClient/async-http-client/issues/513
|For Gerrit Dashboard: JVMCBC-806|
|120479,2||JVMCBC-806: Pass hostname and port to SSL engine.||master||couchbase-jvm-core||Status: MERGED||+2||+1|
|120620,2||JVMCBC-806: Pass remote host and remote port to ssl engine||master||couchbase-jvm-clients||Status: MERGED||+2||+1|
|120702,2||JVMCBC-806: Pass remote host and remote port to ssl engine||colossus||couchbase-jvm-clients||Status: MERGED||+2||+1|