Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Add ENV_IGNORE_TLS_CERTIFICATE option #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

serbanc-ppb
Copy link

Allow posibility to ignore server side certificates when connecting to ElasticSearch

Allow posibility to ignore server side certificates when connecting to ElasticSearch
@@ -293,6 +340,9 @@ private void initialize()
if (System.getenv(ENV_AWS_ACCESS_KEY) != null && System.getenv(ENV_AWS_SECRET_KEY) != null) {
USE_AWS_CREDENTIALS = true;
}
if (System.getenv(ENV_IGNORE_TLS_CERTIFICATE) != null && System.getenv(ENV_IGNORE_TLS_CERTIFICATE) != null) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is System.getenv(ENV_IGNORE_TLS_CERTIFICATE) checked twice here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants