Skip to content

Conversation

@jheunis-bloomberg
Copy link

The python docs specify that since python 3.2, it is recommended to use SSLContext.wrap_socket instead of ssl.wrap_socket ("since it is both inefficient and has no support for SNI and hostname matching").

In python3.12, ssl.wrap_socket was removed, which causes the 100-continue test to reliably fail whenever it's configured with is_secure=True. Switching to the recommended SSLContext.wrap_socket (using the default SSL context) fixes this, allowing the test to run cleanly again.

@jmundack
Copy link

@adamemerson - thanks!
anything else needed here before merge?

@adamemerson
Copy link
Contributor

Schedule a test run against this branch on Teuthology, you'll need to make a custom branch of Ceph that points to this branch of s3-tests.

The python docs specify that since python 3.2, it is recommended to use
`SSLContext.wrap_socket` instead of `ssl.wrap_socket` ("since it is both
inefficient and has no support for SNI and hostname matching").

In python3.12, `ssl.wrap_socket` was removed, which causes the 100-continue
test to reliably fail whenever it's configured with `is_secure=True`.
Switching to the recommended `SSLContext.wrap_socket` (using the default
SSL context) fixes this, allowing the test to run cleanly again.

Signed-off-by: Jacques Heunis <[email protected]>
@jheunis-bloomberg jheunis-bloomberg force-pushed the fix-ssl-socket-wrap-for-python312 branch from 3c714d3 to 108c12b Compare November 11, 2025 10:09
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.

4 participants