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: HttpClient with ssl
Date Sun, 27 Sep 2009 21:09:44 GMT
Douglas Ferguson wrote:
> This is an interface. Is there an impl available that will allow  
> retrieval of any https page?
> 
> I found some examples but they all involved installing certs for the  
> pages you want to allow.
> I need to be able to download any random page from the web.
> 
> Douglas
> 

You'll have to create a custom impl that simply trusts any certificate 
without verification. See these sections of the HttpClient tutorial:

http://hc.apache.org/httpcomponents-client/tutorial/html/connmgmt.html#d4e484
http://hc.apache.org/httpcomponents-client/tutorial/html/connmgmt.html#d4e497

Generally, this kind of practice is strongly discouraged for security 
reasons.

Oleg

> On Sep 27, 2009, at 2:02 PM, Oleg Kalnichevski wrote:
> 
>>> 2) I wasn't sure which factory I should be using.
>>>
>> SecureProtocolSocketFactory
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 


---------------------------------------------------------------------
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