UnboundID: how to configure multiple TLS protocols for LDAP over SSL connection?

922 views Asked by At

We use UnboundID (unfortunately the old version that should be upgraded soon).

I want to configure multiple TLS protocols for LDAP over SSL connection: TLSv1, TLSv1.1, TLSv1.2.

Unfortunately, com.unboundid.util.ssl.SSLUtil#createSSLContext(java.lang.String, java.lang.String) supports only a single value:

  public SSLSocketFactory createSSLSocketFactory(final String protocol)
         throws GeneralSecurityException
  {
    return createSSLContext(protocol).getSocketFactory();
  }

How to configure multiple TLS protocols?

2

There are 2 answers

2
user207421 On BEST ANSWER

If you put "TLSV1.2" it will use any protocol version from there back as far as the JDK supports. What you are doing is configuring the highest TLS protocol version to use.

0
jwilleke On

Specific settings for unboundid-ldap-sdk are controlled by:

com.unboundid.util.SSLUtil.setDefaultSSLProtocol("TLSv1");
com.unboundid.util.SSLUtil.setEnabledSSLProtocols(Arrays.asList("TLSv1"));

As shown in Documentation.