Skip to content

Use of ssl.PROTOCOL_SSLv23 is deprecated #207

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

Open
bradenneal1 opened this issue Jan 8, 2025 · 0 comments
Open

Use of ssl.PROTOCOL_SSLv23 is deprecated #207

bradenneal1 opened this issue Jan 8, 2025 · 0 comments

Comments

@bradenneal1
Copy link

bradenneal1 commented Jan 8, 2025

In kafka/conn.py, there is the following statement

self._ssl_context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)

ssl.PROTOCOL_SSLv23 is an alias of ssl.PROTOCOL_TLS and has been deprecated since Python 3.6.

Further, ssl.PROTOCOL_TLS is deprecated since Python 3.10; the generic TLS protocol constant is deprecated in favor of ssl.PROTOCOL_TLS_CLIENT and ssl.PROTOCOL_TLS_SERVER.

Further information is available below
https://docs.python.org/3/library/ssl.html#ssl.PROTOCOL_TLS

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

No branches or pull requests

1 participant