aspose file tools*
The moose likes Security and the fly likes x509 certificate need to send to the client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "x509 certificate need to send to the client " Watch "x509 certificate need to send to the client " New topic
Author

x509 certificate need to send to the client

Rajaram Murthy
Greenhorn

Joined: May 16, 2011
Posts: 1
Hi,
I have read through most of the topics related this one. But couldn't able to get any help. Here is the requirement... We have generated a server certificate (self-signed)... And the client has sent a request to this server... the client is authenticated... now we need to send a response on to a client specified URL which needs a certficate to be authenticated.... even when we programatically set the SSL factory into the httpsconnection the certificate is not received at the other end... (((HttpsURLConnection) connection).setSSLSocketFactory(sslSocketFactory);)
We found that javax.servlet.request.certificate attribute was not present at all.. any help on this would be appreciated....



regards,
r murthy..
Madhusudhan Dhayanithi
Greenhorn

Joined: Jan 09, 2007
Posts: 4
On the server side, to retrieve the client certificate, use this code.



/* Knowledge is Power */
Madhusudhan Dhayanithi
Greenhorn

Joined: Jan 09, 2007
Posts: 4
On the client side, to retrieve the server certificate,
Madhusudhan Dhayanithi
Greenhorn

Joined: Jan 09, 2007
Posts: 4
Sorry, javax.security is deprecated. you might need to use java.security.*

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: x509 certificate need to send to the client