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");
SSLUtil sslUtil= new SSLUtil();
sslContext.init(sslUtil.getKeyManager(),
sslUtil.getTrustManagers(), null);
SSLSocketFactory socketFactory = new
SSLSocketFactory(sslContext);
socketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
Scheme sch = new Scheme("https", 8443, socketFactory);
httpclient.getConnectionManager().getSchemeRegistry().register(sch);
httpclient.getConnectionManager() is null for
http://hc.apache.org/httpcomponents-asyncclient-dev/httpasyncclient/examples/org/apache/http/examples/nio/client/AsyncClientHttpExchangeFutureCallback.java
how should I add my sslContext ?
Regards,
Jakub
--
View this message in context:
http://httpcomponents.10934.n7.nabble.com/client-cert-authentication-tp20672p20701.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]