hsen-dev/vscode-elastic

Error : self signed certificate in certificate chain (VSCode/Windows)

Opened this issue · 1 comments

Hello,

Trying to use this plugin in VSCode (Windows) to access my local elastic server, which is self-signed, this error pop up :

image

The server is ok, and open the url in chrome works.

Environment :

Any idea ?

This isn't the most secure thing to do but if you set the following environment variable it should work:

NODE_TLS_REJECT_UNAUTHORIZED = '0'

Looking at the source code for the plugin, there's no provision to ignore it on a per host or in the "ElasticSearch" Extension only.