wood burning stoves 2.0*
The moose likes Web Services and the fly likes Getting Client Certificate after SSL Handshake Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Getting Client Certificate after SSL Handshake" Watch "Getting Client Certificate after SSL Handshake" New topic
Author

Getting Client Certificate after SSL Handshake

raveesh ahuja
Greenhorn

Joined: Mar 09, 2007
Posts: 2
Hello,

I am creating an application using axis2, tomcat in which I need to have client authentication ( mutual ssl authentication ). Client authentication part is working fine, but can somebody please tell me whether there is a way to obtain the client certificate that was used to establish the ssl connection? As in, like we can have HandshakeCompletedEvent using which we can obtain the peer certificate chain, similarly do we have any support in tomcat /axis2 ?

I came across a solution to call "request.getAttribute("javax.servlet.request.X509Certificate")", but in axis2 how can we get the request object as it is the SOAP request invocation!

Regards
Raveesh
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting Client Certificate after SSL Handshake