-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
SSL Context ignores certificate verify_mode
#2167
Comments
Hi @b-deam what could be a potential fix? Perhaps defaulting e.g.: adding the below block of code to
many thanks! |
@4lissonsilveira Hello! Setting Anyway, the logic should live in elastic-transport-python (this is where the default value of Is this something you would like to work on? |
Hi @pquentin thanks a lot for the info, yeah, I'd like to work on it. I'll take a look at the transport lib. |
verify_mode
verify_mode
Elasticsearch version (
bin/elasticsearch --version
): 8.xelasticsearch-py
version (elasticsearch.__versionstr__
): 8.6.1Please make sure the major version matches the Elasticsearch server you are running.
Description of the problem including expected versus actual behavior:
According to https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/config.html#_using_an_sslcontext
we should be able to omit the
verify_certs
parameter in the client constructor if we correctly setup an ssl context object.Steps to reproduce:
The text was updated successfully, but these errors were encountered: