You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Luke Coe <lu...@mnetgroup.com> on 2010/05/07 05:54:08 UTC
httpclient 4, ssl and client side certificates
Hi All,
I am having trouble working out how I can get get HttpClient 4 to use
SSL in the way I need.
I have X HTTPS servers that I send requests to. One requires a client
side certificate while the others have trusted certificates and
therefore require no client side certificate. I have no issue connecting
to the server requiring the client side certificate (its in my
keystore), however every time I try to connect to the servers with
trusted certificates, my client side certificate is offered by
HttpClient and therefore fails authentication.
My question is this: is there a way for HttpClient to offer the client
side certificate only to the server requiring it and not to the others?
Thanks in advance,
Luke
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: httpclient 4, ssl and client side certificates
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2010-05-07 at 13:24 +0930, Luke Coe wrote:
> Hi All,
>
> I am having trouble working out how I can get get HttpClient 4 to use
> SSL in the way I need.
>
> I have X HTTPS servers that I send requests to. One requires a client
> side certificate while the others have trusted certificates and
> therefore require no client side certificate. I have no issue connecting
> to the server requiring the client side certificate (its in my
> keystore), however every time I try to connect to the servers with
> trusted certificates, my client side certificate is offered by
> HttpClient and therefore fails authentication.
>
> My question is this: is there a way for HttpClient to offer the client
> side certificate only to the server requiring it and not to the others?
>
> Thanks in advance,
> Luke
Luke
This is entirely out of HttpClient control. All aspects of SSL
authentication can be controlled through the JSSE API.
Besides, I always thought that SSL clients would present a certificate
ONLY if challenged by the server.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org