Code Monkey home page Code Monkey logo

Comments (2)

tkuben avatar tkuben commented on August 17, 2024

Hi @Negashev

I too had the same issue and came up with the following work around. The problem is that when you use browsermobproxy (bmp), any https requests go through the MITM with LittleProxy. This uses its own self signed certificate which is not trusted by your browser. So what I did was:

  1. Created a profile that I can utilize
  2. Opened up firefox using that profile and added the certificate as an authority by going to: Tools->Options->Advanced->Certificates->View Certificates button. Under Authorities tab, hit Import and find the: ca-certificate-rsa.cer file which can be found in your browsermob directory under ssl-support. Once you install the authority, any secure site you visit using the proxy will be fine.
profile = webdriver.FirefoxProfile(profile_directory=FIREFOX_PROFILE)
profile.set_proxy(self.proxy.selenium_proxy())
profile.accept_untrusted_certs = True
profile.assume_untrusted_cert_issuer = False
profile.update_preferences()
self.browser = webdriver.Firefox(firefox_profile=profile, proxy=self.proxy)

Hope this helps
Cheers,

Thusjanthan Kubendranathan

from browsermob-proxy-py.

frogfx avatar frogfx commented on August 17, 2024

This is not working

from browsermob-proxy-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.