I successfully setup HTTPS for Elasticsearch server. Now I can use curl like curl -u elastic:111111 --cacerts "Path/to/my/cert" https://localhost:9200
curl -u elastic:111111 --cacerts "Path/to/my/cert" https://localhost:9200