private Properties buildSSLProperties(DistributedSystemConfig config, boolean forCommandLine) {
    if (!config.isSSLEnabled()) {
      return null;
    }

    String prefix = "";
    if (forCommandLine) {
      prefix = GeodeGlossary.GEMFIRE_PREFIX;
    }

    Properties sslProps = (Properties) config.getSSLProperties().clone();
    // add ssl-enabled, etc...
    sslProps.setProperty(prefix + MCAST_PORT, "0");
    sslProps.setProperty(prefix + CLUSTER_SSL_ENABLED, String.valueOf(config.isSSLEnabled()));
    sslProps.setProperty(prefix + CLUSTER_SSL_CIPHERS, config.getSSLCiphers());
    sslProps.setProperty(prefix + CLUSTER_SSL_PROTOCOLS, config.getSSLProtocols());
    sslProps.setProperty(prefix + CLUSTER_SSL_REQUIRE_AUTHENTICATION,
        String.valueOf(config.isSSLAuthenticationRequired()));
    return sslProps;
  }
Builds optional SSL properties for DistributionLocator. Returns null if SSL is not enabled for
the distributed system.

@param forCommandLine true indicates that {@link GeodeGlossary#GEMFIRE_PREFIX} should be
       prepended so the argument will become -Dgemfire.xxxx
geode-core/src/main/java/org/apache/geode/admin/internal/EnabledManagedEntityController.java