Reputation: 927
Is there any document available to setup Elasticsearch to serve connection over SSL ?. And is the option available on ELS ?.
Ex : curl -XGET https://localhost:9200/
Thanks.
Upvotes: 0
Views: 814
Reputation: 81
You can setup your code to call SSL. What language are you using? Are you using a custom client or one provided by ElasticSearch (Find a list of clients supplied by ElasticSearch here)? If you are using a client you can configure them to use SSL (Here is an example for PHP's client).
I use SSL by using PHP's curl library. I do not use an clients, but instead a custom client. The following will list the stats of ElasticSearch from an SSL connection.
<?php
$ch = curl_init('https://localhost:9200/_stats');
curl_exec($ch); // this outputs to the browser.
// You can capture it using PHP's output buffer
// http://php.net/manual/en/function.ob-start.php
curl_close($ch);
Upvotes: 1