code: private static void setupSsl(Configuration conf) {
      Configuration sslConf = new Configuration(false);
      sslConf.addResource(conf.get("dfs.https.client.keystore.resource",
          "ssl-client.xml"));
      System.setProperty("javax.net.ssl.trustStore", sslConf.get(
          "ssl.client.truststore.location", ""));
      System.setProperty("javax.net.ssl.trustStorePassword", sslConf.get(
          "ssl.client.truststore.password", ""));
      System.setProperty("javax.net.ssl.trustStoreType", sslConf.get(
          "ssl.client.truststore.type", "jks"));
      System.setProperty("javax.net.ssl.keyStore", sslConf.get(
          "ssl.client.keystore.location", ""));
      System.setProperty("javax.net.ssl.keyStorePassword", sslConf.get(
          "ssl.client.keystore.password", ""));
      System.setProperty("javax.net.ssl.keyPassword", sslConf.get(
          "ssl.client.keystore.keypassword", ""));
      System.setProperty("javax.net.ssl.keyStoreType", sslConf.get(
          "ssl.client.keystore.type", "jks"));
    }
docs: Set up SSL resources