mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Maxim Thomas
18.19.2019 dcda9784b269635626bfc98d819d429c39a1f8b7
opendj-server-legacy/src/main/java/org/forgerock/opendj/reactive/LDAPConnectionHandler2.java
@@ -65,6 +65,7 @@
import org.forgerock.opendj.server.config.server.LDAPConnectionHandlerCfg;
import org.forgerock.util.Function;
import org.forgerock.util.Options;
import org.glassfish.grizzly.utils.ArrayUtils;
import org.opends.server.api.AlertGenerator;
import org.opends.server.api.ClientConnection;
import org.opends.server.api.ConnectionHandler;
@@ -854,6 +855,10 @@
            final Set<String> protocols = config.getSSLProtocol();
            if (!protocols.isEmpty()) {
                sslEngine.setEnabledProtocols(protocols.toArray(new String[0]));
            } else { //enforce enable TLSv1.3 to avoid jdk 11 TLSv1.3 problem
               String[] enabledProtocols = sslEngine.getEnabledProtocols();
               String[] enabledProtocolsNoTLSv13 = ArrayUtils.remove(enabledProtocols, "TLSv1.3");
               sslEngine.setEnabledProtocols(enabledProtocolsNoTLSv13);
            }
            final Set<String> ciphers = config.getSSLCipherSuite();