2 Replies Latest reply on Jun 8, 2009 8:21 AM by skn81

    Accesss ssl certificate information

      Greetings!


      I set clientAuth=true in my server.xml to use client ssl (two-way-ssl) which is handled fine by Tomcat. Is it now possible to access the SSL certificate (information) from a session bean?

      A simple example/tutorial would be nice...


      Thanks for your help!

      skn81

        • 1. Re: Accesss ssl certificate information

          Hi again


          Does noboby have an answer to my problem? Or am I just posting my question in the wrong forum? (but neither Security nor Tomcat really seam to fit..)

          Once again: How do I get certificate information from the client ssl auth (which is handled in tomcat) in one of my session beans?


          skn81

          • 2. Re: Accesss ssl certificate information

            @In private FacesContext facesContext;

            (java.security.cert.X509Certificate[]) ((HttpServletRequest) facesContext.getExternalContext().getRequest()).getAttribute("javax.servlet.request.X509Certificate");

            Thanks skn81!
            Your welcome skn81!

            skn81