elastic / stack-docker

Project no longer maintained.
Apache License 2.0
1.18k stars 450 forks source link

Authentication error #92

Open ehongyu opened 5 years ago

ehongyu commented 5 years ago

After running docker-compose up, I was able to log into Kabana UI at port 5601 of localhost, but I am having trouble accessing Elasticsearch in port 9200. The server log shows something like: io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record I've tried putting Username (elastic) and Password (copied from stdout) in the Authorization menu in Postman, but my GET or PUT requests still failed and the log shows the same error.

ChuckWoodraska commented 5 years ago

I was also having a hard time with this. I had to pass a cert and my creds to the endpoint. In the end my curl looked like:

curl https://127.0.0.1:9200/_cat/health --cacert PATH-TO/config/ssl/ca/ca.crt -u elastic -p