#!/usr/bin/env python import urllib3 import certifi http = urllib3.PoolManager( cert_reqs='CERT_REQUIRED', # Force certificate check. ca_certs=certifi.where(), # Path to the Certifi bundle. ) # You're ready to make verified HTTPS requests. try: print "Connecting..." r = http.request('GET', 'https://iaff2396.com/') html = r.read() print html except urllib3.exceptions.SSLError as e: print "error"