Download Elasticsearch plugin behind proxy

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

i'm on windows btw.

Elasticsearch 7.4.0

Thanks in advance.

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.

@ropc thank you for your answer
i've added the ES_JAVA_OPTS manually
Capture
and then i executed this command


any idea whats the problem ?

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

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.

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