IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
SSL and Authenticationedit
You can configure the client to use SSL for connecting to your elasticsearch cluster, including certificate verification and http auth.