Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 382E3E389 for ; Wed, 5 Dec 2012 16:25:21 +0000 (UTC) Received: (qmail 52908 invoked by uid 500); 5 Dec 2012 16:17:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 52844 invoked by uid 500); 5 Dec 2012 16:17:50 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 52808 invoked by uid 99); 5 Dec 2012 16:17:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 16:17:49 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.32] (HELO qmta03.westchester.pa.mail.comcast.net) (76.96.62.32) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 16:17:42 +0000 Received: from omta01.westchester.pa.mail.comcast.net ([76.96.62.11]) by qmta03.westchester.pa.mail.comcast.net with comcast id XsCL1k0040EZKEL53sHM8M; Wed, 05 Dec 2012 16:17:21 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta01.westchester.pa.mail.comcast.net with comcast id XsHL1k01M38FjT13MsHMgm; Wed, 05 Dec 2012 16:17:21 +0000 Message-ID: <50BF738F.9070601@christopherschultz.net> Date: Wed, 05 Dec 2012 11:17:19 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Recognizing certificate removal (SmartCard) References: <50BE36E8.7000500@christopherschultz.net> <50BE3774.6090904@christopherschultz.net> <50BE5815.2050809@christopherschultz.net> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1354724241; bh=mEp8bLnrgp740xX/EK/aI6sZw6cATLDNXVspJSqpDEQ=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=U8aZMLJ8/oXk5H90GaO8yydhP9++H/6U4u4WfrfIf7ATvlaPti4fJkUJkIvDyXOqE /baIcJW1qsL1Uy/qgOGrBhZjkUB5whIrAU1eHaU/Svr6nSSSVMxo4Y3ZrPwL0Kl6Mc AzbrF5klJGj1QPFq1spTRqsS7ln0zC8tseWejthbi0XM8sXVwFG2WVrjssdKaIqDPs 9vYk/FLpuYrxGjBK33d6bU32PRSFMBGL1tG5A/96S5HsxbVmp4+SEDu9iTCnS9Xc/F T8QCQvIY8FdGQPNQfpmARny3wYCh7yqbOW9flIGWC2bFFzw15srqz9eSQ092vOX8u+ uMmHT6t3byk7Q== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Will, On 12/5/12 7:33 AM, Will Nordmeyer wrote: > On Tue, Dec 4, 2012 at 3:07 PM, Christopher Schultz > wrote: Will, > > On 12/4/12 2:47 PM, Will Nordmeyer wrote: >>>> Thanks for the quick response and the thoughts. a 5 minute >>>> timeout wouldn't be acceptable in our environment - theory >>>> being, if user A pulls his smart card out (but didn't log out >>>> of the app), and user B goes up to the machine within 5 >>>> minutes, he may have access to someone else's account in the >>>> application. So I was really hoping there was some way to >>>> trigger the session to expire. > > The only thing I can think of would be to have the web browser > complicit in the deal: if the browser can be configured to expire > the SSL session when the card is removed, then that is really the > only solution that will be truly secure. > >> That's a potential, but there are quite a few clients so I'm not >> sure we can impact the clients... interesting scenario we've >> got. > >>>> I'll keep looking, or suggest to my dev team that they write >>>> a little app that queries the card regularly and as soon as >>>> the card can't be found, logs out. > > Is it a valid use case to have the computer itself logged-in when > the card is removed? For instance, if you configured the machine > to auto-lock when the card was removed, then you might be able to > do other things, too (like kill the browser, which should kill the > SSL session). > >> Oddly enough, yes, it is a valid use case. we have specific >> scenarios where there are common use PCs that have a generic ID >> logged in, but they use their CAC and the browser to access the >> web application. Okay, good to know. Well, the OS can certainly detect when the CAC has been removed. I think it's time to talk to some of the desktop IT folks to see what your options are. This is something that is going to have to be solved on the client side, not the server side. Now, if the CAC is definitely required in order to establish an SSL connection (can you confirm that? It's kind of important for my whole line of thinking, here), you could simply set the SSL session timeout to something typically considered foolishly low (like 1 second). That will significantly impact performance (every request will require a new SSL key negotiation), but should ultimately fulfill your requirement: the only way for a CAC to be removed yet still allow a post-withdraw request would be if the new and old users were face-to-face (discounting the usual edge-cases that crop-up on this list occasionally, like unlikely quantum phenomena, interference from Time Lords, etc.). It cannot, of course, prevent any physical attack (or mistake) on the client side such as one user taking another's CAC or a user forgetting to remove the card from the slot before leaving a terminal. You can fix those vectors with robust cables attaching the CAC to the user's pelvic bone, which I hear will be implemented starting in 2013. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlC/c48ACgkQ9CaO5/Lv0PB+1QCfRh43nJbEPtxcE//0y5rXluNe pQIAnRoOlpByn9bEAU31gp99pXt6WnWc =RZ6x -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org