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

Yuriy Movchan
28.02.2021 36d41eebc3cc0b9656a688976c26bf5f819188c3
opendj-server-legacy/src/main/java/org/opends/server/tools/SSLConnectionFactory.java
@@ -47,7 +47,7 @@
import com.forgerock.opendj.cli.ConnectionFactoryProvider;
import static org.opends.messages.ToolMessages.*;
import static com.forgerock.opendj.util.StaticUtils.isFips;
/**
 * This class provides SSL connection related utility functions.
@@ -127,11 +127,15 @@
             getTrustManagers(KeyStore.getDefaultType(), null, trustStorePath,
                              trustStorePassword);
        trustManagers = new TrustManager[tmpTrustManagers.length];
        for (int i=0; i < trustManagers.length; i++)
        {
          trustManagers[i] =
               new ExpirationCheckTrustManager((X509TrustManager)
                                               tmpTrustManagers[i]);
        if (isFips()) {
          trustManagers = tmpTrustManagers;
        } else {
          for (int i=0; i < trustManagers.length; i++)
          {
            trustManagers[i] =
                 new ExpirationCheckTrustManager((X509TrustManager)
                                                 tmpTrustManagers[i]);
          }
        }
      }
      if(keyStorePath != null)