RE: How to configure log4j.

2004-05-24 Thread bagas
Hi Steve, I think you should add this line : PropertyConfigurator.configure(System.getProperties()); In your code. Adding this code means you re-initialize the LOG4j. But for any details you should look at the LOG4j site. Hope this help. Regards, Rahmat Bagas Santoso -Original

Wire log to Log4J logger.

2004-05-24 Thread John Melody
Is there a way to configure the wire log to go to a Log4J log configured for the application. I have configured Log4J as my application logger and I would like to send the Httpclient wire log to the same file. Currently it is set up as the following -

client certificates: contribution

2004-05-24 Thread Tim Wild
Hi, I have a simple class that i've created that deals with client certificates, based on the sample sun code, which i'd like to contribute. It'd work fine for simple applications, and would be a good starting point for more complex client cert requirements. Should I contribute this, and if

RE: client certificates: contribution

2004-05-24 Thread bagas
IMHO .. Yes you should contribute this. Would you just send it in mail attachment for a while? -Original Message- From: Tim Wild [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 11:28 AM To: [EMAIL PROTECTED] Subject: client certificates: contribution Hi, I have a simple class

Re: client certificates: contribution

2004-05-24 Thread Tim Wild
I was thinking more the cvs contrib directory, how would I get it in there? bagas wrote: IMHO .. Yes you should contribute this. Would you just send it in mail attachment for a while? -Original Message- From: Tim Wild [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 11:28 AM To:

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