Error : self signed certificate in certificate chain (VSCode/Windows)
Opened this issue · 1 comments
Rom1deTroyes commented
Hello,
Trying to use this plugin in VSCode (Windows) to access my local elastic server, which is self-signed, this error pop up :
The server is ok, and open the url in chrome works.
Environment :
- Windows 10
- elasticsearch-8.12.1 (fresh install from zipfile)
- elastic host (in Elastic: Set Host) : https://elastic:QQzxNN20AYdSK2ne8i9-@localhost:9200/
Any idea ?
KellyMurphy commented
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.