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

Error when running example.py (SSL key to small) with SSL version 1.1.1d #53

Closed
Rubske70 opened this issue Oct 18, 2019 · 6 comments
Closed

Comments

@Rubske70
Copy link

Hi,

I'm getting the following error when running example.py on my Pi4 with latest raspbian

OpenSSL.SSL.Error: [('SSL routines', 'tls_process_ske_dhe', 'dh key too small')]

Any ideas?

Thanks for your help!

Rob

@sampsyo
Copy link
Owner

sampsyo commented Oct 18, 2019

Hi! SSL errors usually indicate problems with your Python installation. Sorry I can't help more than that!

@Rubske70
Copy link
Author

Thanks for the quick reply, i will search in that direction!

Regards

Rob

@Rubske70
Copy link
Author

I did some investigating and think it's related to the latest python version including openssl 1.1.1d on my Windows 10 it's working with 1.1.1c

Do you think this could be true?

Regards

Rob

@Rubske70 Rubske70 changed the title Error when running example.py Error when running example.py (SSL key to small) with SSL version 1.1.1d Oct 18, 2019
@Rubske70
Copy link
Author

Seems to happen with anybody on Python 3.7.3 and openssl 1.1.1d

Hopefully anybody knows a solution..

Thx

Rob

@Gamelauncher
Copy link

A quick workaround is by adding this at the bottom of init.py

requests.packages.urllib3.disable_warnings()
requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS += 'HIGH:!DH:!aNULL'
try:
    requests.packages.urllib3.contrib.pyopenssl.DEFAULT_SSL_CIPHER_LIST += 'HIGH:!DH:!aNULL'
except AttributeError:
    # no pyopenssl support used / needed / available
    pass

@Rubske70
Copy link
Author

Cool! that solved the issue.

Thanks Gamelauncher!!

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

3 participants