File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes LDAPS Problem / SSLHandshakeException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "LDAPS Problem / SSLHandshakeException" Watch "LDAPS Problem / SSLHandshakeException" New topic

LDAPS Problem / SSLHandshakeException

Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

Afternoon, all.
I'm getting the following exception while trying to open a connection to an LDAPS server:
vs( simple bind failed: [Root exception is Remote host closed connection during handshake]
The servlet this code runs from seems to work just fine from my local workstation with iPlanet 4.1 installed, but is throwing the above exception when it tries to reach from our development server running iPlanet 6.1. (So, I know the code should theoretically work.) Both environments are running Java2 1.4.2_03 and have the JSSE and JCE jar files in their classpaths. They're using the same keystore file that I've verified works on my local machine.
The exact code being returned is:

Any thoughts on what could be causing the above exception?
[ March 02, 2004: Message edited by: Theodore Casser ]

Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

I've added some more information above, including the output from iPlanet. (One issue, for sure, is my lack of familiarity with iPlanet, which is preventing me from getting a more detailed error log.) Has anyone experienced this problem before?
I agree. Here's the link:
subject: LDAPS Problem / SSLHandshakeException
It's not a secret anymore!