AutomatedTester / browsermob-proxy-py

A python wrapper for Browsermob Proxy
http://oss.theautomatedtester.co.uk/browsermob-proxy-py
236 stars 104 forks source link

Add ability to configure ssl cert and ca #59

Open bputt opened 8 years ago

bputt commented 8 years ago

It would be great if we could customize the SSL cert and CA during runtime.

Similar to the java examples provided: https://github.com/lightbody/browsermob-proxy/tree/master/mitm#using-a-custom-certification-authority

Example usage could be:

from browsermobproxy import Server
server = Server("path/to/browsermob-proxy")
server.start(sslCert = "/dir/sslKey.p12", sslCA = "/dir/sslCA.crt")