News for hackers. Stuff that matters.
Re:Do you check HTTPS certificates in your API clients? by rfugger on Sunday July 29, 2012 @07:03PM (#4310080)
Python does have some certificate-checking machinery:

http://docs.python.org/library/ssl.html#functions-constants-...

http://docs.python.org/library/ssl.html#ssl-certificates

However, this isn't exposed in the higher-level httplib.HTTPSConnection class for some reason. I'd bet it's not too hard to write your own subclass to handle it though.

Re:Do you check HTTPS certificates in your API clients? by natrius on Sunday July 29, 2012 @07:28PM (#4310136)
If you're using Python for HTTP requests, you should be using Requests, which checks SSL certificates by default (as far as I can tell).

http://docs.python-requests.org/en/latest/

Re:Do you check HTTPS certificates in your API clients? by voltagex_ on Sunday July 29, 2012 @10:00PM (#4310572)
Yeah, I posted this below. It's mentioned in the advanced section. Why checking your SSL certs is an advanced topic I don't know.
Re:Do you check HTTPS certificates in your API clients? by __alexs on Monday July 30, 2012 @04:17AM (#4311371)
This doesn't do any CRL or OCSP checks at all so you are still vulnerable to attacks using revoked certificates.