Skip to content

Instantly share code, notes, and snippets.

View cfangmeier's full-sized avatar
🥓

Caleb Fangmeier cfangmeier

🥓
  • Boston University
  • Boston, MA
View GitHub Profile
@cfangmeier
cfangmeier / urllib2_ssl.py
Last active May 29, 2020 09:57 — forked from zed/urllib2_ssl.py
SSL client/server certificates verification for `urllib2`. :python:ssl:
"""SSL client/server certificates verification for `urllib2`.
see: https://gist.github.com/zed/1347055
It works on Python 2.6, 2.7, 3.1, 3.2
Example::
>>> import urllib2, urllib2_ssl
>>> opener = urllib2.build_opener(urllib2_ssl.HTTPSHandler(