Skip to content
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

Support for "DEFAULT_CIPHERS" requests > 2.31.0 is broken #6831

Open
snooppr opened this issue Nov 20, 2024 · 0 comments
Open

Support for "DEFAULT_CIPHERS" requests > 2.31.0 is broken #6831

snooppr opened this issue Nov 20, 2024 · 0 comments

Comments

@snooppr
Copy link

snooppr commented Nov 20, 2024

GNU/Linux, deb, Python 3.8
Android/Termux, Python 3.11.5

Urllib3 = 1.26.18, 1.26.20
Requests = 2.32.3

import requests
requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS += ':!DH'
print(requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS)

ECDHE+AESGCM:ECDHE+CHACHA20:DHE+AESGCM:DHE+CHACHA20:ECDH+AESGCM:DH+AESGCM:ECDH+AES:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!eNULL:!MD5:!DSS:!DH

r = requests.get("https://nhl.ru")

SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL]

Solution: roll back to Requests 2.31.0
Reported: #6827

@snooppr snooppr changed the title Support for "DEFAULT_CIPHERS" requests >= 2.31.0 is broken Support for "DEFAULT_CIPHERS" requests > 2.31.0 is broken Nov 20, 2024
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