I setup an elasticsearch cluster on EC2 via docker.
on EC2 terminal everything working well when I run:
curl --cacert http_ca.crt -u elastic:$Password https://localhost:9200
I got: { "name" : "21frt45422121f", "cluster_name" : "docker-cluster", "cluster_uuid" : "xxxxx,...}
I want to connect from my local machine: I copy the certificate http_ca.crt
to my local ubuntu machine and I added it in /usr/local/share/ca-certificates/http_ca.crt
curl --verbose --cacert /usr/local/share/ca-certificates/http_ca.crt -u elastic:$Password https://Public-IP-address:9200
I got this error: curl: (60) SSL certificate problem: unable to get local issuer certificate I try to skip the certificate with -k
option but still getting an error.
Is there a way to launch the docker container without any certificate ?
How to get it work. Note that I am connecting via a VPN from my local machine