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?
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.