static SSLFactory getSSLFactoryIfRequired(VerifiableProperties verifiableProperties) throws Exception {
    if (new RouterConfig(verifiableProperties).routerEnableHttp2NetworkClient) {
      return new NettySslHttp2Factory(new SSLConfig(verifiableProperties));
    }
    ClusterMapConfig clusterMapConfig = new ClusterMapConfig(verifiableProperties);
    boolean requiresSSL = clusterMapConfig.clusterMapSslEnabledDatacenters.length() > 0;
    return requiresSSL ? SSLFactory.getNewInstance(new SSLConfig(verifiableProperties)) : null;
  }
Create an {@link SSLFactory} if there are SSL enabled datacenters in the properties
@param verifiableProperties the {@link VerifiableProperties} to use.
@return an {@link SSLFactory}, or {@code null}, if no {@link SSLFactory} is required.
@throws Exception
ambry-test-utils/src/main/java/com/github/ambry/server/ServerTestUtil.java