Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 80659 invoked from network); 6 Jun 2003 06:35:29 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 6 Jun 2003 06:35:29 -0000 Received: (qmail 12614 invoked by uid 97); 6 Jun 2003 06:37:54 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 12607 invoked from network); 6 Jun 2003 06:37:53 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 6 Jun 2003 06:37:53 -0000 Received: (qmail 79836 invoked by uid 500); 6 Jun 2003 06:35:19 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 79823 invoked from network); 6 Jun 2003 06:35:19 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 6 Jun 2003 06:35:19 -0000 Received: (qmail 59871 invoked from network); 6 Jun 2003 06:35:17 -0000 Received: from unknown (HELO apache.org) (127.0.0.1) by localhost.apache.org with SMTP; 6 Jun 2003 06:35:17 -0000 Message-ID: <3EE03631.7050807@apache.org> Date: Fri, 06 Jun 2003 08:35:29 +0200 From: Remy Maucherat Organization: ASF User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: cvscommit:jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11Http11Processor.javaHttp11Protocol.java References: <20030605164248.82706.qmail@icarus.apache.org> <3EDF82DE.4030706@apache.org> <3EDF9478.F3A5FB7@Sun.COM> <011501c32b9d$9ccdaad0$ec66a8c0@bbarkerxp> <3EDFD25A.F1FAC92D@Sun.COM> In-Reply-To: <3EDFD25A.F1FAC92D@Sun.COM> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: localhost.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Jan Luehe wrote: > Bill, > > >>SSLAuthenticator makes a request for a special Request attribute >>("org.apache.coyote.request.X509Certificate"), which fires off an Action >>hook (ACTION_REQ_SSL_CERTIFICATE) to renegotiate the handshake if necessary. >> >>I changed TC 5 a little while back to do a lazy-evaluation of the SSL >>attributes. If you are seeing problems, that might be where. > > > Well, the reason I was still using the (supposedly deprecated) > CertificatesValve was because it was still being added to the pipeline > in ContextConfig. I'm going to change ContextConfig as follows: > > Index: ContextConfig.java > =================================================================== > RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/ContextConfig.java,v > retrieving revision 1.25 > diff -u -r1.25 ContextConfig.java > --- ContextConfig.java 14 May 2003 17:42:55 -0000 1.25 > +++ ContextConfig.java 5 Jun 2003 23:08:13 -0000 > @@ -497,7 +497,7 @@ > Valve certificates = null; > try { > Class clazz = > - Class.forName("org.apache.catalina.valves.CertificatesValve"); > + Class.forName("org.apache.catalina.authenticator.SSLAuthenticator"); > certificates = (Valve) clazz.newInstance(); > } catch (Throwable t) { > return; // Probably JSSE classes not present > > Even with this fix in place, the SSLAuthenticator's authenticate() method > was still not being invoked, because org.apache.catalina.authenticator.AuthenticatorBase > currently does not consider the CLIENT-CERT authentication constraint at > all. > > After fixing this, the SSL handshake does get renegotiated in the way you > described, but for some reason the connection then times out. I'm still investigating. > > Thanks for putting me on the right track, Bill! > > Jan > > P.S.: I'm also +1 for removing the CertificatesValve, since it is > confusing to have several valves essentially doing the same thing. There's no need to hardcode the authenticator, you only need to add it in startup.Authenticators.properties, and it will be added in the pipeline as needed. It's already there, BTW, so I don't quite see what's going on (but it should be fixed there, no harcoding required). Remy --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org