Question

I need to visit a site (https://*) that requires me to install two certificates in Firefox before I can visit it successfully. One I can export as a .p12 file (Client Certificate), and one is a .crt file (CA Certificate). If I try accessing this site without these certificates, I get a "failed handshake error".

How do I visit this site in Python? I was thinking of using mechanize. Thanks.

Was it helpful?

Solution

I'd suggest you use webdriver to automate Firefox. It has a Python interface too.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top