Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 93305 invoked from network); 25 Oct 2009 20:07:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Oct 2009 20:07:48 -0000 Received: (qmail 57415 invoked by uid 500); 25 Oct 2009 20:07:47 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 57350 invoked by uid 500); 25 Oct 2009 20:07:47 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 57341 invoked by uid 99); 25 Oct 2009 20:07:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 20:07:47 +0000 X-ASF-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jorton@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 20:07:45 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9PK7NJ8000530 for ; Sun, 25 Oct 2009 16:07:23 -0400 Received: from turnip.manyfish.co.uk (vpn-12-107.rdu.redhat.com [10.11.12.107]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9PK7MMK013679 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 25 Oct 2009 16:07:23 -0400 Received: from jorton by turnip.manyfish.co.uk with local (Exim 4.69) (envelope-from ) id 1N29N3-0005Oq-7r for dev@httpd.apache.org; Sun, 25 Oct 2009 20:07:21 +0000 Date: Sun, 25 Oct 2009 20:07:21 +0000 From: Joe Orton To: dev@httpd.apache.org Subject: Re: OCSP stapling in mod_ssl - use as OCSP cache for client authentication Message-ID: <20091025200721.GA20714@redhat.com> Mail-Followup-To: dev@httpd.apache.org References: <4AAA1C3B.9030803@oss-institute.org> <4AB094AA.9090402@rowe-clan.net> <4AB0DC5A.60409@oss-institute.org> <20090916124530.GA7078@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20090916124530.GA7078@redhat.com> User-Agent: Mutt/1.5.19 (2009-01-05) Organization: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in UK and Wales under Company Registration No. 03798903 Directors: Michael Cunningham (USA), Brendan Lane (Ireland), Matt Parson (USA), Charlie Peters (USA) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 On Wed, Sep 16, 2009 at 01:45:30PM +0100, Joe Orton wrote: > On Wed, Sep 16, 2009 at 01:38:50PM +0100, Dr Stephen Henson wrote: > > I may have missed something here but the OCSP stapling code doesn't appear to be > > in trunk. The patch in: > > > > https://issues.apache.org/bugzilla/show_bug.cgi?id=43822 > > > > doesn't apply cleanly any more, though the changes needed to get it working are > > fairly trivial. I'm in the process of including an updated patch. > > I'm working on merging this right now, your patch did apply fine, I've > committed the one part separately which you alude to below. I finally got round to finishing this off, holidays and similar excuses now out of the way. First of all: thanks a lot for the patch, and sorry it took so long to merge! I made a few changes relative to your latest patch: - minor syntax/style cleanups - renamed the new C file to ssl_util_stapling.c - updated the handling of "SSLStaplingCache" as per changes to "SSLSessionCache", to allow "SSLStaplingCache default" to DTRT - moved up the call to ssl_stapling_ex_init() so it took effect before the ex_data index was used and have two questions: 1) the use of an ex_data structure attached to the X509 * to store the stapling-specific state seems unnecessary. Was there a reason why you did this rather than simply extending the modssl_pk_server_t structure? (The ex_data indices have historically been a nightmare with mod_ssl due to the fact that OpenSSL might get unloaded from memory during startup, and any cached copies of the index values outside of OpenSSL may or may not be reliable. Global state == bad!) 2) the error case where there's no SSLStaplingForceURL configured and no responder specified in the cert - this is currently logged but no more. I'm wondering whether this should be an ssl_abort(); if someone enables stapling for a vhost but there is no responder known, it seems like that should be a config error? I've done basic testing using openssl s_client/ocsp as client/responder such that I can see an OCSP response being passed through, but it didn't seem to get cached correctly which I haven't looked into further (maybe I broke that with my changes). Regards, Joe