vscode-elastic icon indicating copy to clipboard operation
vscode-elastic copied to clipboard

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

Open momotaro98 opened this issue 3 years ago • 1 comments

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

The AWS Elasticsearch service host

  • is hosted in internal network (AWS VPC internal), which is isolated from local network.
  • establishes TLS(HTTPS)

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.

momotaro98 avatar Jul 15 '21 13:07 momotaro98

I would also be interested in this function

ygurin avatar Nov 23 '21 16:11 ygurin