12 Replies Latest reply on Oct 17, 2002 8:19 AM by Manuel

    get X509Certificate with Tomcat ?

    David Araujo Newbie


      i'm using jboss 3.0 with tomcat 4.0.3, and i have configure tomcat (tomcat4-service.xml) to accept ssl connections. I'm using a client that is connecting to the tomcat and that is presenting his certificate. There is no problem with the connection, but when i try to get the information of the certificate in the servlet:

      X509Certificate cert = (X509Certificate) httpRequest.getAttribute("javax.servlet.request.X509Certificate");

      the variable cert is always null.

      Any idea ? Do i have to export any variables in the tomcat configuration file (if yes, how can i do that) ?

      Thanks very much for your help