From 07771df25161dae86b8aca8eb26491519c0a938f Mon Sep 17 00:00:00 2001 From: pkriko Date: Fri, 9 Feb 2018 15:56:55 +0100 Subject: [PATCH 1/2] added ssl_opt in api.pm --- apps/elasticsearch/restapi/custom/api.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/elasticsearch/restapi/custom/api.pm b/apps/elasticsearch/restapi/custom/api.pm index c2eabb1ef..646a4fe17 100644 --- a/apps/elasticsearch/restapi/custom/api.pm +++ b/apps/elasticsearch/restapi/custom/api.pm @@ -49,6 +49,7 @@ sub new { "password:s@" => { name => 'password' }, "proxyurl:s@" => { name => 'proxyurl' }, "timeout:s@" => { name => 'timeout' }, + "ssl-opt:s@" => { name => 'ssl_opt' }, }); } $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); From bc8256f77817dc2a5c02af155dfc5dd5d5b734f0 Mon Sep 17 00:00:00 2001 From: pkriko Date: Fri, 9 Feb 2018 16:02:28 +0100 Subject: [PATCH 2/2] forgot to add the help message in api.pm --- apps/elasticsearch/restapi/custom/api.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/elasticsearch/restapi/custom/api.pm b/apps/elasticsearch/restapi/custom/api.pm index 646a4fe17..eb10f5a35 100644 --- a/apps/elasticsearch/restapi/custom/api.pm +++ b/apps/elasticsearch/restapi/custom/api.pm @@ -194,6 +194,10 @@ Proxy URL if any Set HTTP timeout +=item B<--ssl-opt> + +Set SSL Options (--ssl-opt="SSL_version => TLSv1" --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE"). + =back =head1 DESCRIPTION