import requests
url = 'https://www.w3schools.com/python/demopage.php'
#make the request with the path to a TLS certificate:
x = requests.head(url, verify='folder/tlscertificate')
print(x.status_code)