You need to provide more details.
You enable TLS by setting the scheme (protocol) to https in the 3rd argument to HttpHost.
If you wish to configure the TLS settings, then you will need to tell us exactly what you're trying to configure so that we can give you relevant advice.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.