hsen-dev / vscode-elastic

Elasticsearch for VSCode
https://marketplace.visualstudio.com/items?itemName=ria.elastic
The Unlicense
165 stars 27 forks source link

Is there a way to ignore TLS cert issue as well as curl's k option? #57

Open momotaro98 opened 3 years ago

momotaro98 commented 3 years ago

I'd like to connect to AWS Elasticsearch service host via vscode-elastic extension.

The AWS Elasticsearch service host

So, I

When I use curl command to access the Elasticsearch host, I create ssh tunnel first then use -k option to ignore the cert issue like the following.

curl -k -XGET https://localhost:7000/_cat/health

It can give me a 200 response.

How to see this issue

Make ssh tunnel via

ssh -f -N -L 7000:subdomain.ap-northeast-1.es.amazonaws.com:443 bastion-server-domain

Set the domain host for vscode-elastic extension.

image

Exec Run Query

image

I'd like to know if there's a way to ignore the cert issue as well as curl's k option.

ygurin commented 2 years ago

I would also be interested in this function