Profile picture
mikeymikey @mikeymikey
, 6 tweets, 3 min read Read on Twitter
As a reminder to anyone out there that's dealing with the TLS 1.2 cutover on python's pypi on macOS 10.12: You may still get stung by it if you end up unfortunately needing to deal with setuptools / easy_install packages that you can't get through pip.
Fortunately, @clburlison took work that I did (github.com/pudquick/tlsssl) and improved upon the build process: github.com/clburlison/ven…

This results in a "tlsssl-1.1.0.pkg" package you can install on 10.12 that will hotfix ssl to support TLS 1.1/1.2 in most situations.
Basic usage to get there on 10.12:
- download repo
- cd into code/openssl and run: sudo /usr/bin/python setup.py -vv -p -b -i
- cd into code/tlsssl and run: /usr/bin/python setup.py -vv -b -p

Poof, you have a tlsssl-1.1.0.pkg
If you install this package on 10.12, it will place a .pth file that will insert /Library/vendored/tlsssl early into sys.path in the system python configuration.

That directory contains a modified form of ssl module which will load instead of the system one.
The modified one links against openssl 1.0.2 (which was the closest API-wise and still offers TLS 1.1/1.2 support).

You should notice that urllib2.openurl now works against TLS 1.1/1.2 sites 😄
Note: make sure to do the compile / build of the pkg from a 10.12 machine for this step:
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to mikeymikey
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member and get exclusive features!

Premium member ($3.00/month or $30.00/year)

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!