Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 66260 invoked from network); 1 Aug 2006 21:38:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 21:38:53 -0000 Received: (qmail 14055 invoked by uid 500); 1 Aug 2006 21:38:42 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 13752 invoked by uid 500); 1 Aug 2006 21:38:41 -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 13741 invoked by uid 99); 1 Aug 2006 21:38:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 14:38:41 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-tomcat-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 14:38:40 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G81wI-0007c4-Qx for users@tomcat.apache.org; Tue, 01 Aug 2006 23:38:11 +0200 Received: from 64.171.57.66 ([64.171.57.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Aug 2006 23:38:10 +0200 Received: from shankarunni by 64.171.57.66 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Aug 2006 23:38:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@tomcat.apache.org From: Shankar Unni Subject: Re: HTTPS connector and clientAuth=want: how to retrieve client cert in servlet? Date: Tue, 01 Aug 2006 14:37:51 -0700 Lines: 15 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 64.171.57.66 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.3.0 In-Reply-To: Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Shankar Unni wrote: >> However, I'm stuck trying to retrieve the client certificate from the >> ServletRequest in the servlet itself. Never mind - I had botched the truststore setup for the server, so the client cert was not being passed in. Answer for the archives: import java.security.cert.X509Certificate; String certAttrName = "javax.servlet.request.X509Certificate"; X509Certificate[] certchain = (X509Certificate[])request.getAttribute(certAttrName); --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org