Hi, ian, i had your same problem and i used succssfuly a "fake" (as yours)
class that works well.

Do you want it?

Bye
Olindo

2009/6/23 Ian Pilcher <[email protected]>

> I am following the instructions at
> http://hc.apache.org/httpclient-3.x/sslguide.html to connect to a server
> whose certificate is signed by an internal certificate authority (CA).
> I've created my own implementation of SecureProtocolSocketFactory, and
> I've verified that the SSLSockets it creates can successfully handshake
> with the server.
>
> I cannot figure out, however, how to get HttpClient to actually use my
> factory.  I've tried all of the methods suggested in the HttpClient SSL
> Guide:
>
>  - registering my factory as the factory for https
>
>  - registering my factory as the factory for a different protocol and
>    using that protocol in my URL
>
>  - httpclient.getHostConfiguration().setHost(...)
>
> None of these techniques has any effect.  I've added a println at the
> beginning of all of the createSocket methods in my factory, and I can
> see that none of them is being called.
>
> What am I missing?
>
> Thanks!
>
> --
> ========================================================================
> Ian Pilcher                                         [email protected]
> ========================================================================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Olindo Pindaro
http://www.linkedin.com/in/olindopindaro
+39 3939455830

Reply via email to