This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Services and the fly likes To acquire client certificate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "To acquire client certificate" Watch "To acquire client certificate" New topic
Author

To acquire client certificate

Manikandan Jayaraman
Ranch Hand

Joined: Sep 15, 2004
Posts: 225
Hi

I have a web service which I have made secure. The client and theservice go though a 2-way SSL handshake before communicating with each other.

At the server side,

When I try httpReq.isSecure(), I get "true"
When I try httpReq.getAttribute("javax.net.ssl.cipher_suite"), I get "SSL_RSA_WITH_RC4_128_MD5"

But, when I try httpReq.getAttribute("javax.servlet.request.X509Certificate"), I get "Null".

When I print httpReq.getAttributeNames(), I dont see this attribute as well.

Why is this so? What could be the error? How should I go about getting the certificate?

Thanks!
Mani


Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: To acquire client certificate
 
Similar Threads
regarding signature algorithm??
browser sending certificates
SSL, AXIS, Web Service
Java service and c# client https
doubt in j2ee authentication mechanisms [CLIENT_CERT]