-
Notifications
You must be signed in to change notification settings - Fork 138
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
Deprecated SSL protocol in CertValidatingHTTPSConnection #178
Comments
This is probably left over from our Python 2 and 3.5 support - I'll see if we can remove it. |
@AaronAtDuo any movement? I see that back in June (before this report), there was an unrelated deprecation fix (dea8d14) in the same module. Would be nice to be able to turn warnings back on ( |
Thanks for the ping! This fell off our radar but should be a quick fix. I've posted #190 to at least move off the deprecated PROTOCOL_SSLv23. Going all the way to PROTOCOL_TLS_CLIENT actually broke some tests, so I need to look into that; but the intermediate step to PROTOCOL_TLS seems safe. |
Ok #191 is up to go all the way to TLS_PROTOCOL_CLIENT, but that changes the default behavior of the client, so needs a bit more discussion. |
@AaronAtDuo ping! :) jpeak5 is my co-worker. We're still seeing the deprecation warnings in our tests. |
tl;dr: Line 72 of
duo_client/https_wrapper.py
hard-codes a deprecated (since Python 3.6) SSL protocol.The only similar issue I found in this queue is #31, but it's pretty historic (2016) and only slightly related.
We've just upgraded Python (to 3.10.5) and found that at least one of our scripts using duo_client_python is emitting a new-to-us deprecation warning:
Line 72, referenced in the warning above is
ssl.PROTOCOL_SSLv23
is deprecated since Python 3.6 (docs.python.org). The replacement,ssl.PROTOCOL_TLS
, which was introduced in Python 3.6 is itself deprecated, now, under Python 3.10:(docs.python.org)
ssl.PROTOCOL_TLS_CLIENT
:(docs.python.org)
The text was updated successfully, but these errors were encountered: