demo_requests_get_cert.py:
import requests url = 'https://w3schools.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)
C:\Users\My Name>python demo_requests_get_cert.py
200