Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 88130 invoked from network); 1 Jun 2004 14:56:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jun 2004 14:56:22 -0000 Received: (qmail 49681 invoked by uid 500); 1 Jun 2004 14:56:07 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 49641 invoked by uid 500); 1 Jun 2004 14:56:07 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 49627 invoked by uid 99); 1 Jun 2004 14:56:07 -0000 Received: from [207.217.120.50] (HELO avocet.mail.pas.earthlink.net) (207.217.120.50) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 01 Jun 2004 07:56:07 -0700 Received: from h-68-164-94-113.snvacaid.dynamic.covad.net ([68.164.94.113] helo=netyourwork.com) by avocet.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1BVAg3-0004bk-00 for tomcat-user@jakarta.apache.org; Tue, 01 Jun 2004 07:55:43 -0700 Message-ID: <40BC98EE.9080504@netyourwork.com> Date: Tue, 01 Jun 2004 07:55:42 -0700 From: Jim Hopp User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: SSL Client Authorization References: <5.1.1.6.0.20040601061020.0308de60@pop.ym.phub.net.cable.rogers.com> <5.1.1.6.0.20040601091808.0311e8f8@pop.ym.phub.net.cable.rogers.com> In-Reply-To: <5.1.1.6.0.20040601091808.0311e8f8@pop.ym.phub.net.cable.rogers.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N According to this link http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html possible values are "true", "want", and (I presume) "false". I use client authentication in (non-embedded) Tomcat, and "true" does indeed require client authentication. -Jim Sander Smith wrote: > Doug, > > Thanks for your help but this isn't what I need. Yes, I want the client > to present a certificate for validation during the SSL handshake, but > your solution is not available to me. You suggest putting something in a > config file, but I'm running Tomcat embedded, so all of the > configuration is happening programmatically. > > I have a org.apache.coyote.tomcat5.CoyoteConnector and I call > setKeystoreFile(...), setKeyAlias(...), etc. to set up the server side > SSL, and this is working great. When I want to request a client > certificate I would expect to call setClientAuth(...) to do this. > However, I'd expect to pass a boolean into this method, but instead, the > interface requires a String!!! To make matters worse, there's no > documentation to say what this string is. > > Does anyone know how to do this programmatically?? > > Sander Smith > > At 08:20 AM 6/1/2004 -0400, you wrote: > >> Sander, >> >> If what you want is to have the client present a certificate for >> validation, >> then in your connector have something like >> >> clientAuth="true" >> >> See >> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html >> >> If you are looking for something different let us know. >> >> Doug >> www.parsonstechnical.com >> >> >> >> ----- Original Message ----- >> From: "Sander Smith" >> To: >> Sent: Tuesday, June 01, 2004 6:29 AM >> Subject: SSL Client Authorization >> >> >> > I'm writing an application with SSL that's been working fine, and would >> > like to enable client authorization. It seemed like the thing to do >> was go >> > to my connector (org.apache.coyote.tomcat5.CoyoteConnector) and >> enable it >> > there. Lo and behold there is a method (setClientAuth) that seems to do >> > what I want, but for some strange reason it takes a string as an >> argument >> > instead of a boolean. What am I missing here?? How do I enable this? >> > >> > Sander Smith >> > >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> > >> > >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org