Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update elastic_output.py #134

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

jrespeto
Copy link

@jrespeto jrespeto commented Sep 8, 2021

I cleaned up a bit from the last pull request.
The elasticsearch class has an option for disabling the warnings also so I used that instead of making the ssl_context and adding the extra imports.
https://elasticsearch-py.readthedocs.io/en/v7.14.1/api.html#elasticsearch.Elasticsearch

added the message if ssl_show_warning and verify_certs is false.

      "elastic_ssl": true,
      "verify_certs": false,
      "ssl_show_warn": true,
      "ca_certs": "/path/to/custom_CA.cer",

I cleaned up a bit from the last pull request.
The elasticsearch class has an option for disabling the warnings also so I used that instead of making the ssl_context and adding the extra imports. 
https://elasticsearch-py.readthedocs.io/en/v7.14.1/api.html#elasticsearch.Elasticsearch
 
added the message if ssl_show_warning and verify_certs is false. 
 
```
      "elastic_ssl": true,
      "verify_certs": false,
      "ssl_show_warn": true,
      "ca_certs": "/path/to/custom_CA.cer",
```
openssl s_client -connect host:port -showcerts | openssl x509 -noout -fingerprint -md5
if you want to add a self signed fingerprint
fix : should check for is not None
fixing the fix 
need more coffee
updated message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant