demo_requests_get_cert.py:
import requests url = 'https://begtut.com/python/demopage.htm' #specify a cert to use as a client side certificate by setting the 'cert' parameter: x = requests.get(url, cert='folder/myclient.cert') print(x.status_code)
➜ begtut>python demo_requests_get_cert.py
200