Re: client certs - how to choose which cert to use?

2004-05-24 Thread Jesus M. Salvo Jr.
Tim Wild wrote: Hi all, Using a link to Sun code that a few people have posted before, I have client authentication working using HttpClient by creating my own SecureProtocolSocketFactory. The problem i'm having is that it seems to automatically choose a certificate without asking me which

Re: client certs - how to choose which cert to use?

2004-05-24 Thread Tim Wild
Thanks Jesus, I gave this a try, but I think I missed something, as it didn't work - I got a SSLHandshakeException: with the message handshake_failure, indicating that the client certificate hadn't been presented. I provided those parameters to the JVM and used the HttpClient as usual, simply

Re: client certs - how to choose which cert to use?

2004-05-24 Thread Jesus M. Salvo Jr.
Tim Wild wrote: Thanks Jesus, I gave this a try, but I think I missed something, as it didn't work - I got a SSLHandshakeException: with the message handshake_failure, indicating that the client certificate hadn't been presented. What JDK are you using ? If you are using JDK 1.3, then you have

Re: client certs - how to choose which cert to use?

2004-05-24 Thread Tim Wild
I'm using JDK 1.4.2. I turned debug on, and I can see the server cert and my CA cert being sent to the client, but it doesn't look like a client cert is being presented. The output is quite verbose, but i've included it in case you can see anything obvious in it. I've removed most of the hex

client certs - how to choose which cert to use?

2004-05-23 Thread Tim Wild
Hi all, Using a link to Sun code that a few people have posted before, I have client authentication working using HttpClient by creating my own SecureProtocolSocketFactory. The problem i'm having is that it seems to automatically choose a certificate without asking me which one to use. Does

client certs - how to choose which cert to use?

2004-05-23 Thread Tim Wild
Hi all, Using a link to Sun code that a few people have posted before, I have client authentication working using HttpClient by creating my own SecureProtocolSocketFactory. The problem i'm having is that it seems to automatically choose a certificate without asking me which one to use. Does