App sever jboss-4.2.3.GA - Ejb is consuming Web services using @WebServiceRef (from another application @WebServces bean, I am not sure is it relevant).
1)I have both keystore and truststore set up in server.xml (clientauth=true)
2)Communication with Web browsers works as expected
3)Communication with java desktop application consuming web services started with
-Djavax.net.ssl.keyStore ...works as expected
...
SEND TLSv1 ALERT:
[STDOUT] fatal,
[STDOUT] description = certificate_unknown
...
quote:-Djavax.net.ssl.keyStore=...
MessageContext context = wsContext.getMessageContext();
HttpServletRequest req = (HttpServletRequest)context.get(MessageContext.SERVLET_REQUEST) ;
X509Certificate[] certificates = (X509Certificate[]) req.getAttribute("javax.servlet.request.X509Certificate");
wsContext.getUserPrincipal()
No valid security context for the caller identity