Hi Stefan

I'me experiencing some weird error while trying to connect using SSL
with the LDAP API. Here is the error I get:

The connection failed
 - ERR_04122_SSL_CONTEXT_INIT_FAILURE Failed to initialize the SSL context
  org.apache.directory.api.ldap.model.exception.LdapException:
ERR_04122_SSL_CONTEXT_INIT_FAILURE Failed to initialize the SSL context
        at
org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:695)
        at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$1.run(DirectoryApiConnectionWrapper.java:247)
        at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1312)
        at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doConnect(DirectoryApiConnectionWrapper.java:281)
        at
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.connect(DirectoryApiConnectionWrapper.java:172)
        at
org.apache.directory.studio.connection.core.jobs.CheckNetworkParameterRunnable.run(CheckNetworkParameterRunnable.java:80)
        at
org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:140)
        at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by:
org.apache.directory.api.ldap.model.exception.LdapOperationException:
ERR_04120_TLS_HANDSHAKE_ERROR The TLS handshake failed
        at
org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:688)
        ... 7 more

  ERR_04122_SSL_CONTEXT_INIT_FAILURE Failed to initialize the SSL context


The thing is that the exact same test with JNDI works just fine.

I have asked for certificate validation, but AFAICT, changing this
option does not change a thing.

I'm using the latest version (Version: 2.0.0.v20180908) with JDK
jdk1.8.0_171


I also desesperately tried to set the -Djavax.net.debug=all JVM
parameter to get some SSL logs when running Studio, to no avail :/


Does it ring a bell ?


-- 
Emmanuel Lecharny

Symas.com
directory.apache.org

Attachment: pEpkey.asc
Description: application/pgp-keys

Reply via email to