Secure Elastic connection using transport client
问题 The bounty expires in 7 hours . Answers to this question are eligible for a +50 reputation bounty. Atul Thakre is looking for a canonical answer . Need to connect to a secure elastic search which has https authentication using Transport client in java code. I have userId and password to connect secure elastic. I am using elasticsearch 7.10.0. try { Settings settings = Settings.builder().put("cluster.name", clusterName) .put("xpack.security.user", "elastic:elastic") .put("xpack.security