tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From M.Ma...@ads.it
Subject Can't get SSL Client Certificate
Date Tue, 01 Oct 2002 12:22:04 GMT
Hy,
I've got problems getting ssl client certificate.
I'm using tomcat 4.1.2, Apache 2.0.42, mod_jk2 (2.0.0) and I've configured
Apache with SSL client verification and mod_jk2 with normal socket 
connector to port 8009.
All seems to work fine: 
the browser ask me the pin for the access to the key and then I can access
my servlet in tomcat, but I always get null when I try to access 
information about the client certificate.

This is the servlet code that I use to access the request attributes:

    java.util.Enumeration attributeNames = request.getAttributeNames();
    while(attributeNames.hasMoreElements()) {
      out.println("<p>Attributo</p>");
      out.println("<p>" + attributeNames.nextElement().toString() + 
"</p>"); 
    }
    out.println(request.getAttribute("javax.net.ssl.peer_certificates"));
 
out.println(request.getAttribute("javax.servlet.request.X509Certificate"));

What I'm doing wrong???
TIA
Mauro
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message