7 Replies Latest reply: Jun 2, 2011 7:10 PM by 866056 RSS

    Extract X509 certificate using Java without client authentication

    866056
      Hi, I am working with certificates.

      How would I extract a browser certificate using Java?

      request.getAttribute("javax.servlet.request.X509Certificate")
      from HttpServletRequest will only work if client-authentication is active in glassfish/jboss. A reference from a blog is referenced below.

      I don't want glassfish to prompt me for selecting a browser client certificate (the p12 file). But I want those certificates imported in the browser to be available in the ServletRequest for me to extract using java's request.getAttribute("javax.servlet.request.X509Certificate").

      http://groups.google.com/group/ibm.software.websphere.application-server/browse_thread/thread/68aa1ae48d7d8c1a?pli=1


      Thanks in advance.

      -Ba Nguyen