views:

353

answers:

1

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.

+1  A: 

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

Geo