admin管理员组

文章数量:1297008

I setup elasticsearch using docker on EC2 machine.

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.

How to get it work

本文标签: amazon ec2my local system does not truct ElasticSearch CertificateStack Overflow