cfg.setProperty(ES_NET_USE_SSL, "true");
cfg.setProperty(ES_NET_SSL_CERT_ALLOW_SELF_SIGNED, "true");
cfg.setProperty(ES_NET_SSL_TRUST_STORE_LOCATION, "ssl/client.jks");
cfg.setProperty(ES_NET_SSL_TRUST_STORE_PASS, "testpass");
transport = new CommonsHttpTransport(cfg.copy(), "localhost");
}