I'm trying to connect to my Java application containing ApacheDS server with openLDAP client. Server is configured well, I've tested that using different clients (ldapbrowser, jxplorer). With openLDAP I'm able to connect to regular ldap port, but when I'm trying to connect to ldaps port or using TLS I have always the same message:
TLS trace: SSL_connect:before/connect initialization
TLS trace: SSL_connect:SSLv2/v3 write client hello A
TLS trace: SSL3 alert read:fatal:unexpected_message
TLS trace: SSL_connect:error in SSLv2/v3 read server hello A
TLS: can't connect: error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert unexpected message.
And my application gives me an exception:
WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected exception forcing session to close: sending disconnect notice to client.
and after that:
javax.net.ssl.SSLHandshakeException: SSLv2Hello is disabled
I was trying to force in java that sslv2 should be enabled but servers response is the same. I haven't seen in ApacheDS configuration option enabling SSLv2 (there is only SSLv3 and 3 TLS).
Is it possible that connect with tls OpenLDAP needs SSLv2 message? I can't find a way how to disable it. Or is it problem with Apache, that it doesn't recognize TLS handshake messages?
Do you have any idea, how to solve that?
Thanks!