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

use the paypal in mac os x has the problem about sslv3 #3340

Closed
iLaus opened this issue Jun 17, 2016 · 3 comments
Closed

use the paypal in mac os x has the problem about sslv3 #3340

iLaus opened this issue Jun 17, 2016 · 3 comments

Comments

@iLaus
Copy link

iLaus commented Jun 17, 2016

requests.exceptions.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:600)

@iLaus iLaus closed this as completed Jun 17, 2016
@iLaus iLaus reopened this Jun 17, 2016
@iLaus iLaus changed the title use the paypal in macsslv3 use the paypal in mac os x has the problem about sslv3 Jun 17, 2016
@iLaus
Copy link
Author

iLaus commented Jun 17, 2016

I have change the terminal's openssl version,

kingwangdeMini:icampuslist_web kingwang$ openssl version
OpenSSL 1.0.2d 9 Jul 2015

but my python's openssl version is still old version:

kingwangdeMini:icampuslist_web kingwang$ python -c "import ssl; print(ssl.OPENSSL_VERSION)"
OpenSSL 0.9.8zg 14 July 2015

I know that [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] 's bug is because of the version error.

I want to know that how to change my python's openssl version~
thanks!

@Lukasa
Copy link
Member

Lukasa commented Jun 17, 2016

Your Python's OpenSSL version is what it is compiled against. In this case, for Mac OS X, you'll need to compile yourself a new Python. The easiest way to do that is to use Homebrew: brew install python will provide you with a new Python that has a more modern OpenSSL.

You can also fix the bug for yourself by running pip install pyasn1 ndg-httpsclient pyopenssl, which will also give you a newer OpenSSL that only Requests can use.

@iLaus
Copy link
Author

iLaus commented Jun 18, 2016

This is my first use github to solve issue.
@Lukasa
Thank you! And my bug solved now.

I use the pyenv to run the python. and I uninstall the python, then install again. It's working! So happy~~

By the way, I tried the second method firstly, but It not working. Then I tried the first one.I didn't know the reason. Maybe I had already installed that packages.

Finally, Thanks very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants