below is how we can set ALLOW_ALL_HOSTNAME_VERIFIER

SSLIOSessionFactory iosessionFactory = new SSLIOSessionFactory(sslContext,
SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);

            final CloseableHttpAsyncClient httpclient =
HttpAsyncClients.custom()
                .setDefaultRequestConfig(requestConfig)
                .setSSLContext(sslContext)
                .setSSLIOSessionFactory(iosessionFactory)
                .build();
probably now .setSSLContext(sslContext) is not needed, cause sslContext is
in iosessionFactory


Oleg, once again thanks for help.



--
View this message in context: 
http://httpcomponents.10934.n7.nabble.com/client-cert-authentication-tp20672p20706.html
Sent from the HttpClient-User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to