Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

x509 certificate need to send to the client

 
Rajaram Murthy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the server side, to retrieve the client certificate, use this code.

 
Madhusudhan Dhayanithi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the client side, to retrieve the server certificate,
 
Madhusudhan Dhayanithi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, javax.security is deprecated. you might need to use java.security.*

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic