1 Reply Latest reply on May 9, 2005 8:23 AM by Thomas Diesler

    could not obtain the client certificate chain

    kusber Newbie

      Hi there,

      i have a small problem with obtaining a client certificate from message context of a secure web service runing on jboss 4.0.0. i have two jboss instances on two diff. computers and one instance is calling a web service hosted on another instance via TLS. The TLS is set up on both instances including the clientAuth flag. as i could see the whole communication is working, but if I try to get the certificate chain from the servlet request i always get null. The following code is called in the bean implementing the web service:

      MessageContext messageContext = this.ctx.getMessageContext();
      HttpServletRequest request = (HttpServletRequest) messageContext.getProperty("transport.http.servletRequest");
      X509Certificate[] certificates = (X509Certificate[]) request.getAttribute("javax.servlet.request.X509Certificate");
      

      Is there any possibility to get the certificates?
      The same code is working very good in case of servlet running on the same jboss instance.

      Best regards

      T.K.