For Programmers: Free Programming Magazines  


Home > Archive > Java Help > May 2006 > Java: server certificate retrieval via SSL connection on JLDAP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Java: server certificate retrieval via SSL connection on JLDAP
rohit.dantas@gmail.com

2006-05-24, 7:07 pm

Hi everyone,

I am trying to set up a LDAP connection to my LDAP server using the
JLDAP libraries. I am using SSL to partially secure the connection and
this requires that I define the server certificate in my local
truststore. What I would like to do (as one may see in programs such as
LDAP Browser), is to check if the certificate is available for the
server on the local machine and then:

1) If the certificate is available use it to set up the SSL LDAP
connection.

OR

2) If the certificate is NOT available, then download it from the
server and retry the construction of the SSL connection using the
downloaded certificate.

My question is: how do I go about point 2)? What mechanisms can I use
(in java) to retrieve the certificate from the server and store it to a
local file?

Thanks for your help,
Rohit

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com