# Elasticsearch Plugin Basic Authentication HTTPS Endpoint

**URL:** https://discuss.elastic.co/t/elasticsearch-plugin-basic-authentication-https-endpoint/280094
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [July 30, 2021, 4:05pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-basic-authentication-https-endpoint/280094 "2021-07-30T16:05:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_Denneen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_denneen/32/1254_2.png) [@Chris\_Denneen](https://discuss.elastic.co/u/Chris_Denneen)
#### Post date: [July 30, 2021, 4:05pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-basic-authentication-https-endpoint/280094/1 "2021-07-30T16:05:17Z")

</div>

As of java 1.8 you can no longer do basic auth against HTTPs endpoint.  
How can you use creds with bin/elasticsearch-plugin https endpoint?

Looks like you need an Authorization header added but how can you do that with the current binary? Is there some other way to configure this?

I opened issue here:

> <https://github.com/elastic/puppet-elasticsearch/issues/1121>
>
> As of Java 1.8 HTTPS Basic auth can't be part of the request https://user:pass@s…erver
> So need a way to provide base64 encoded user:pass to the elasticsearch::plugin url parameter as part of url connection:
> \`\`\`
> urlConnection.setRequestProperty("Authorization", "Basic " + authStringEnc);
> \`\`\`

---

<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: [August 27, 2021, 4:05pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-basic-authentication-https-endpoint/280094/2 "2021-08-27T16:05:37Z")

</div>

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