Sending HTTPS requests to es01 running on docker-compose

I'm using docker-compose setup as described here:

And I'm able to send requests to e01 using curl passing a certificate and username with password.

Now I want to send requests from my application to e01 node. I tried to do it with postman first and always run into an error:

GET https://localhost:9200/indices

{
    "error": {
        "root_cause": [
            {
                "type": "security_exception",
                "reason": "missing authentication credentials for REST request [/_cat/indices]",
                "header": {
                    "WWW-Authenticate": [
                        "Basic realm=\"security\" charset=\"UTF-8\"",
                        "Bearer realm=\"security\"",
                        "ApiKey"
                    ]
                }
            }
        ],
        "type": "security_exception",
        "reason": "missing authentication credentials for REST request [/_cat/indices]",
        "header": {
            "WWW-Authenticate": [
                "Basic realm=\"security\" charset=\"UTF-8\"",
                "Bearer realm=\"security\"",
                "ApiKey"
            ]
        }
    },
    "status": 401
}

I have ca.crt and ca.key client certificate set. I took them from ca.zip.
What am I missing?

Welcome to our community! :smiley:

I don't use postman much, but I do recall that you can define the auth details somewhere, so are you sure you did that?

Hi @anjankow Welcome to the community!

Use postman basic auth

Lots of good docs for postman

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.