Skip to content
Permalink
Browse files

Using tls client cert and key to connect to 411_alert index

  • Loading branch information...
Manuel Suárez
Manuel Suárez committed Jan 23, 2019
1 parent 7bf39ec commit fe865a37d719c24e8b1a4347ad9a8d3f33bb3b3b
Showing with 6 additions and 0 deletions.
  1. +6 −0 phplib/ESClient.php
@@ -60,6 +60,12 @@ public static function getClient($config_name='alerts', $index=false) {
if(!is_null($escfg['ssl_cert'])) {
$cb->setSSLVerification($escfg['ssl_cert']);
}
if(!is_null($escfg['ssl_client_key'])) {
$cb->setSSLKey($escfg['ssl_client_key']);
}
if(!is_null($escfg['ssl_client_cert'])) {
$cb->setSSLCert($escfg['ssl_client_cert']);
}
return $cb->build();
}

0 comments on commit fe865a3

Please sign in to comment.
You can’t perform that action at this time.