HttpClient 4 SSL and client side certificates
Posted
by Luke
on Stack Overflow
See other posts from Stack Overflow
or by Luke
Published on 2010-05-07T03:34:32Z
Indexed on
2010/05/07
3:38 UTC
Read the original article
Hit count: 578
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
© Stack Overflow or respective owner