Setting up security in elasticsearch

I have Elasticsearch set up in server and Java in another server.
the java application communicates with Elasticsearch .
I need to implement SSL certificate between JAVA and Elasticsearch communication

You should read