Description
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