ThorbenJ / nrc-elasticsearch-nodes

A set of Node-RED contributed (NRC) nodes for Elasticsearch
MIT License
1 stars 0 forks source link

not possible to connect to elastic #1

Closed UweW closed 1 year ago

UweW commented 1 year ago

Hi, it is not possible to connect to the elastic node. Always getting "ConnectionError: unable to verify the first certificate" Is it possible to disable cert validation ?

best regards UWe

ThorbenJ commented 1 year ago

In the Advanced Options box you can pass any argument accepted by Elasticsearch-js new Client() constructor: https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-connecting.html

Not tested but reading https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-connecting.html#auth-tls you should be able to use:

tls: 
  // might be required if it's a self-signed certificate
  rejectUnauthorized: false

image

UweW commented 1 year ago

Hi, without the comment in line 2 it works. Thanks a lot.

Uwe

ThorbenJ commented 1 year ago

I guess the comment is not valid yaml, I should have been more careful with my copy/pasting. Glad it worked.