We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The ssl_assert_hostname parameter has no effect on the AsyncOpenSearch client.
ssl_assert_hostname
AsyncOpenSearch
client = AsyncOpenSearch(hosts='my.opensearch.with.selfsigned.certs', ssl_assert_hostname=False) await client.search(...)
opensearchpy.exceptions.ConnectionError: ConnectionError(Cannot connect to host my.opensearch.instance:9200 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'my.opensearch.instance'. (_ssl.c:1000)")]) caused by: ClientConnectorCertificateError(Cannot connect to host my.opensearch.instance:9200 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'my.opensearch.instance'. (_ssl.c:1000)")])
The connection should succeed even if the hostname does not match.
N/A
The parameter is documented in the function docs:
opensearch-py/opensearchpy/_async/http_aiohttp.py
Line 120 in 6fa54a7
I believe the parameter works with the urllib3-based client.
urllib3
I'm working on a PR to fix this.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What is the bug?
The
ssl_assert_hostname
parameter has no effect on theAsyncOpenSearch
client.How can one reproduce the bug?
What is the expected behavior?
The connection should succeed even if the hostname does not match.
What is your host/environment?
N/A
Do you have any screenshots?
N/A
Do you have any additional context?
The parameter is documented in the function docs:
opensearch-py/opensearchpy/_async/http_aiohttp.py
Line 120 in 6fa54a7
I believe the parameter works with the
urllib3
-based client.I'm working on a PR to fix this.
The text was updated successfully, but these errors were encountered: