# SSL Security

**URL:** <https://discuss.elastic.co/t/ssl-security/201369>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 27, 2019, 9:25am UTC](https://discuss.elastic.co/t/ssl-security/201369 "2019-09-27T09:25:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NNN](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@NNN](https://discuss.elastic.co/u/NNN)\
**Post date:** [September 27, 2019, 9:25am UTC](https://discuss.elastic.co/t/ssl-security/201369/1 "2019-09-27T09:25:55Z")

</div>

Hope you can help me.  
I am using es 6.8  
So, my problem is that I want to use java high level client with SSL with an ingest plugin.  
First I tried to configure my client in a simple main method and it works perfectly. (I used this documents : [https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.8/\_encrypted\_communication.html](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.8/_encrypted_communication.html) /[https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.8/\_basic\_authentication.html](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.8/_basic_authentication.html))

But, when I try to use the client from my plugin ingests (with the same config) I get 401 Unauthorized failed to authenticate user [elastic]

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [September 29, 2019, 9:28am UTC](https://discuss.elastic.co/t/ssl-security/201369/2 "2019-09-29T09:28:53Z")

</div>

> [@NNN](#):
>
> But, when I try to use the client from my plugin ingests (with the same config)

You will need to share some additional information. What is your "plugin ingests" ? How do you use the java high level rest client ? How does the code look like ( you need to share the relevant parts at least ).

Unfortunately, it is unlikely that someone will be able to assist you with what you have shared so far.

---

<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:** [October 27, 2019, 9:28am UTC](https://discuss.elastic.co/t/ssl-security/201369/3 "2019-10-27T09:28:53Z")

</div>

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