public static @NotNull SSLContext createAndConfigureSSLContext(final @NotNull SSLConfig sslConfig,
      final boolean skipSslVerification) {
    try {
      if (sslConfig.useDefaultSSLContext()) {
        return SSLContext.getDefault();
      }

      final SSLContext ssl = getSSLContextInstance();

      final KeyManager[] keyManagers;
      if (sslConfig.getKeystore() != null) {
        keyManagers = new KeyManager[] {newFileWatchingKeyManager(sslConfig)};
      } else {
        keyManagers = null;
      }

      final TrustManager[] trustManagers;
      if (skipSslVerification) {
        trustManagers = new TrustManager[] {new X509TrustManager() {
          @Override
          public java.security.cert.X509Certificate[] getAcceptedIssuers() {
            return null;
          }

          @Override
          public void checkClientTrusted(X509Certificate[] certs, String authType) {}

          @Override
          public void checkServerTrusted(X509Certificate[] certs, String authType) {}

        }};
      } else if (sslConfig.getTruststore() != null) {
        trustManagers = new TrustManager[] {newFileWatchingTrustManager(sslConfig)};
      } else {
        trustManagers = null;
      }

      ssl.init(keyManagers, trustManagers, new SecureRandom());
      return ssl;
    } catch (Exception e) {
      throw new RuntimeException(e.getMessage(), e);
    }
  }
Splits an array of values from a string, whitespace or comma separated.
geode-core/src/main/java/org/apache/geode/internal/net/SSLUtil.java