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

Python use old version of OpenSSL? #21118

Closed
bo0ch opened this issue May 16, 2019 · 7 comments
Closed

Python use old version of OpenSSL? #21118

bo0ch opened this issue May 16, 2019 · 7 comments
Labels

Comments

@bo0ch
Copy link

@bo0ch bo0ch commented May 16, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

Hello. I used macOS Sierra 10.12.6. I DON'T USE HOMEBREW! I tried to download from Vimeo with youtube -dl and got this:

ERROR: Unable to download webpage: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)> (caused by URLError(SSLError(1, u'[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)'),))

It's because OpenSSL version supplied with macOS out of date. So I updated openssl like this:
$ curl -O https://www.openssl.org/source/openssl-1.1.1b.tar.gz

$ tar -zxvf openssl-1.1.1b.tar.gz
$ cd openssl-1.1.1b

$ ./config

$ make

$ sudo make install

After that, I check openssl version:
$ openssl version
OpenSSL 1.1.1b 26 Feb 2019

And check where is it:
$ which openssl
/usr/local/bin/openssl

But error exists anyway. Then I check what version python used:
$ python -c 'import ssl; print(ssl.OPENSSL_VERSION)'
OpenSSL 0.9.8zh 14 Jan 2016

It's old out of date version!

Question: how can I tell the python (and other apps that may use openssl) use the new version?

@bo0ch bo0ch added the question label May 16, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 16, 2019

You must build python agains this openssl version yourself or get it from somewhere.

@dstftw dstftw closed this May 16, 2019
@bo0ch
Copy link
Author

@bo0ch bo0ch commented May 16, 2019

Sorry, don't understand you. Can you explain more?

@Hrxn
Copy link

@Hrxn Hrxn commented May 16, 2019

Tried a new Python version for macOS (from the official Python website)?

@bo0ch
Copy link
Author

@bo0ch bo0ch commented May 16, 2019

Yes (tried both, latest 2 and 3), but same error

@canamcy
Copy link

@canamcy canamcy commented May 16, 2019

It says TLSv1 error.
I had to update httplib2 to use TLSv1_2.
Need more output.

@bo0ch
Copy link
Author

@bo0ch bo0ch commented May 16, 2019

what should I do?

@clankill3r
Copy link

@clankill3r clankill3r commented Nov 11, 2019

Same issue, any help is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.