# Download Elasticsearch plugin behind proxy

**URL:** <https://discuss.elastic.co/t/download-elasticsearch-plugin-behind-proxy/231283>\
**Category:** Elasticsearch\
**Created:** [May 6, 2020, 7:29am UTC](https://discuss.elastic.co/t/download-elasticsearch-plugin-behind-proxy/231283 "2020-05-06T07:29:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![haythem](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@haythem](https://discuss.elastic.co/u/haythem)\
**Post date:** [May 6, 2020, 7:29am UTC](https://discuss.elastic.co/t/download-elasticsearch-plugin-behind-proxy/231283/1 "2020-05-06T07:29:07Z")

</div>

Hi guys , i was wondering how to add proxy parameters to elasticsearch to download plugin ? i've tried following these steps but nothing happened [https://www.elastic.co/guide/en/elasticsearch/plugins/current/\_other\_command\_line\_parameters.html#\_proxy\_settings](https://www.elastic.co/guide/en/elasticsearch/plugins/current/_other_command_line_parameters.html#_proxy_settings)

i'm on windows btw.

Elasticsearch 7.4.0

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [May 6, 2020, 9:21am UTC](https://discuss.elastic.co/t/download-elasticsearch-plugin-behind-proxy/231283/2 "2020-05-06T09:21:17Z")

</div>

Hi @haythem.

> i've tried following these steps but nothing happened

1. This is odd. Could you share the commands you use (scrub any confidential data) and the results of these commands?

2. After running the commands, do you see any errors in the Elasticsearch logs?

Thank you.

---

<div class="post-metadata">

**Author:** ![haythem](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@haythem](https://discuss.elastic.co/u/haythem)\
**Post date:** [May 6, 2020, 10:41am UTC](https://discuss.elastic.co/t/download-elasticsearch-plugin-behind-proxy/231283/3 "2020-05-06T10:41:37Z")

</div>

@ropc thank you for your answer  
i've added the ES\_JAVA\_OPTS manually  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/6/3/63a93d17a1b7ace7a8fca1b4217a2e1751aec922.png)  
and then i executed this command

 ![Capture2](https://us1.discourse-cdn.com/elastic/original/3X/c/d/cd9560041872f2ea76cf77dfd567639f1040df42.png)  
any idea whats the problem ?

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [May 7, 2020, 7:03am UTC](https://discuss.elastic.co/t/download-elasticsearch-plugin-behind-proxy/231283/4 "2020-05-07T07:03:58Z")

</div>

Hi @haytem - We recommend that you share configuration, logs, etc. in a preformatted text format - not pictures:

 ![Screenshot 2020-05-06 at 5.31.41 PM](https://us1.discourse-cdn.com/elastic/original/3X/4/2/42ea0dfbb150d2d5d96ce26bd73b513c22aa2a47.png)

If your proxy uses HTTPS, you should use the following Java settings:

- `-Dhttps.proxyHost=host_name`
- `-Dhttps.proxyPort=https_port_number`

You should also ensure that the certificate used by the proxy is trusted by Java.

a) Import the certificate into the Java trust store, e.g: `keytool -import -alias $ALIAS -keystore $JAVA_HOME/jre/lib/security/cacerts -file $PATH_TO_PEM_FILE`

b) In addition to the HTTPS proxy Java settings, add these two Java settings:

- `-Djavax.net.ssl.trustStore=$JAVA_HOME/jre/lib/security/cacert`
- `-Djavax.net.ssl.trustStorePassword=changeit`

Let us know if that solves the problem.

---

<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:** [June 4, 2020, 7:04am UTC](https://discuss.elastic.co/t/download-elasticsearch-plugin-behind-proxy/231283/5 "2020-06-04T07:04:02Z")

</div>

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