# Sending HTTPS requests to es01 running on docker-compose

**URL:** <https://discuss.elastic.co/t/sending-https-requests-to-es01-running-on-docker-compose/327728>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [March 15, 2023, 7:01am UTC](https://discuss.elastic.co/t/sending-https-requests-to-es01-running-on-docker-compose/327728 "2023-03-15T07:01:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjankow](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anjankow/32/118463_2.png) [@anjankow](https://discuss.elastic.co/u/anjankow)\
**Post date:** [March 15, 2023, 7:01am UTC](https://discuss.elastic.co/t/sending-https-requests-to-es01-running-on-docker-compose/327728/1 "2023-03-15T07:01:47Z")

</div>

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

> **[Install Elasticsearch with Docker | Elasticsearch Guide \[8.6\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/docker.html#docker-compose-file)**

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:

```auto
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?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 19, 2023, 10:59pm UTC](https://discuss.elastic.co/t/sending-https-requests-to-es01-running-on-docker-compose/327728/2 "2023-03-19T22:59:03Z")

</div>

Welcome to our community! 😃

> [@anjankow](#):
>
> I tried to do it with postman first and always run into an error:

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?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 20, 2023, 12:38am UTC](https://discuss.elastic.co/t/sending-https-requests-to-es01-running-on-docker-compose/327728/3 "2023-03-20T00:38:51Z")

</div>

Hi @anjankow Welcome to the community!

> **[Authorizing requests | Postman Learning Center](https://learning.postman.com/docs/sending-requests/authorization/#basic-auth)**
>
> Authorizing requests: documentation for Postman, the collaboration platform for API development. Create better APIs—faster.

Use postman basic auth

Lots of good docs for postman

> **[How to set Basic Authentication in Postman for REST call](https://www.toolsqa.com/postman/basic-authentication-in-postman/)**
>
> How to set Basic Authentication in Postman? Difference between Authorization and Authentication. What is Base64 encoding? HOw to Authenticate a REST call using Basic Authentication in Postman

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 17, 2023, 12:39am UTC](https://discuss.elastic.co/t/sending-https-requests-to-es01-running-on-docker-compose/327728/4 "2023-04-17T00:39:43Z")

</div>

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