hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: client cert authentication
Date Sat, 06 Jul 2013 15:06:28 GMT
On Fri, 2013-07-05 at 21:03 +0200, Ja kub wrote:
> hallo,
> 
> I want to connect to latest tomcat 7 with client auth required
> (clientAuth="true").
> 
> I cannot do it neither with synch nor asynch httpClient.
> 
> Are there any examples of https with client cert auth available ?
> 
> I don't want to use system properties, I want to store client cert in file
> and use mock/trustall trustmanager. I want to init them from java, like
> below
> 
> SSLContext context = SSLContext.getInstance("TLS");
>   context.init(keyManagerFactory.getKeyManagers(), null, new SecureRandom());
> 
> I am interested in both async and sync client.
> 
> Thx
> Jakub

What's wrong with these examples?

http://hc.apache.org/httpcomponents-client-ga/examples.html
http://hc.apache.org/httpcomponents-asyncclient-dev/examples.html

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message