You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
elasticsearch.exceptions.SSLError: ConnectionError(Cannot create a client socket with a PROTOCOL_TLS_SERVER context
(_ssl.c:801)) caused by: SSLError(Cannot create a client socket with a PROTOCOL_TLS_SERVER context (_ssl.c:801))
Even though literally everyone thinks the comment is true at first, it's wrong. For a client socket, ssl.Purpose.SERVER_AUTH should be used, with or without client certs. Everyone agrees that ssl.Purpose is super confusing, see python/cpython#73996. Anyway, in 3.10 making this mistake isn't possible anymore: python/cpython#26646.
However, just using SERVER_AUTH is not enough, because it activates more checks. When fixing this we need to make sure that:
SSLContext attributes are changed in the correct order (eg.disabling verification is only possibly if hostname checking is disabled)
@lhuet reported us an issue where the following command:
failed like this:
The issue is in esrally/client:py:
rally/esrally/client.py
Lines 138 to 142 in 609a043
Even though literally everyone thinks the comment is true at first, it's wrong. For a client socket,
ssl.Purpose.SERVER_AUTH
should be used, with or without client certs. Everyone agrees thatssl.Purpose
is super confusing, see python/cpython#73996. Anyway, in 3.10 making this mistake isn't possible anymore: python/cpython#26646.However, just using
SERVER_AUTH
is not enough, because it activates more checks. When fixing this we need to make sure that:The text was updated successfully, but these errors were encountered: