4 ms·
I wish that this sort of stuff would come down to API-level interfaces. For example, for the longest time Python's SSL library wouldn't even verify SSL certs:
by zdw 12y ago
I wish that this sort of stuff would come down to API-level interfaces.
For example, for the longest time Python's SSL library wouldn't even verify SSL certs:
https://wiki.python.org/moin/SSL https://wiki.python.org/moin/SSL
And would gladly connect to MITM'ed sites. I think this is rectified, but the information I've found is conflicting.
It seems to me that securing API endpoints would be even more important than end users, as there's could be a much larger quantity of data through an API than a browser.
- ayrx 12y agoIf you are making SSL requests with Python you will want to use service_identity[0] to perform certificate validation. Hynek has some good information on his blog[1]. [0]: https://github.com/pyca/service_identity https://github.com/pyca/service_identity [1]: https://hynek.me/talks/tls/ https://hynek.me/talks/tls/
- giovannibajo1 12y agoPython's SSL state has been worse than other languages because of the 2.x -> 3.x transition, so basically 2.7 was left broken for longer than ideal. Eventually, they decided to backport most of the network security improvements (http://legacy.python.org/dev/peps/pep-0466/ http://legacy.python.org/dev/peps/pep-0466/), see there the timeline. Notice that this applies to the standard library; many people use the requests library which not only offers a superior API but also more security by default.