Bug 41382 - SSL Client certificate not present in servlet attribute "javax.servlet.request.X509Certificate" when using APR connector
Summary: SSL Client certificate not present in servlet attribute "javax.servlet.reques...
Status: RESOLVED DUPLICATE of bug 37869
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Connector:HTTP (show other bugs)
Version: 5.5.20
Hardware: All Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Keywords: PatchAvailable
Depends on:
Reported: 2007-01-16 08:40 UTC by Christophe Pierret
Modified: 2007-01-17 15:12 UTC (History)
0 users

A patch fixing the bug (4.96 KB, patch)
2007-01-16 08:42 UTC, Christophe Pierret
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Pierret 2007-01-16 08:40:23 UTC
When using APR/native HTTPS connector, based on OpenSSL, if the client connects
to HTTPS connector with a valid client certificate, the client X509 certificate
is not present in the array of certificates in the
javax.servlet.request.X509Certificate ServletRequest attribute, only
certificates from the CAs in the certification chain are present. If no CA
certificate is sent by the client then the attribute is null.
This is not compliant with Servlet Specification v2.3, in the section "SRV.4.7
SSL Attributes" which states:
"If there is an SSL certificate associated with the request, it must be exposed
by the servlet container to the servlet programmer as an array of objects of
type java.security.cert.X509Certificate and accessible via a ServletRequest
attribute of javax.servlet.request.X509Certificate.
The order of this array is defined as being in ascending order of trust. The
first certificate in the chain is the one set by the client, the next is the one
used to authenticate the first, and so on."
Comment 1 Christophe Pierret 2007-01-16 08:42:00 UTC
Created attachment 19414 [details]
A patch fixing the bug

This patch is working for me (tested/validated in my company), and will be
deployed as part of a commercial product based on Tomcat 5.5.20.
Comment 2 Christophe Pierret 2007-01-17 15:12:45 UTC
Duplicate of http://issues.apache.org/bugzilla/show_bug.cgi?id=37869

*** This bug has been marked as a duplicate of 37869 ***