Re: client cert authentication

2013-07-08 Thread bastiat
Hallo Oleg, First of all, thx for Your reply, sync example works fine, thx, how can I configure keymanager and trustmanager for async ? below code works correctly for sync (SSLUtil properly loads keymanager[] and trustmanager[]) SSLContext sslContext = SSLContext.getInstance("TLS")

Re: client cert authentication

2013-07-08 Thread Oleg Kalnichevski
On Mon, 2013-07-08 at 05:19 -0700, bastiat wrote: > Hallo Oleg, > > First of all, thx for Your reply, > > sync example works fine, thx, > > how can I configure keymanager and trustmanager for async ? > > below code works correctly for sync (SSLUtil properly loads keymanager[] and > trustmanager

Re: client cert authentication

2013-07-08 Thread bastiat
great thanks, I also figured it now, and wanted to post my same solution I get hostname in certificate didn't match: != so now I must add somewhere SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER previously it was done on socketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERI

Re: client cert authentication

2013-07-08 Thread bastiat
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(