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");
This has been assigned to
http://jira.jboss.com/jira/browse/JBWS-216
Thanks