     [Answers](https://scrapfly.io/blog)   /  [http](https://scrapfly.io/blog/tag/http)   /  [How to install mitmproxy certificate on Chrome and Chromium?](https://scrapfly.io/blog/answers/how-to-install-mitmproxy-certificate)   # How to install mitmproxy certificate on Chrome and Chromium?

 by [Bernardas Alisauskas](https://scrapfly.io/blog/author/bernardas) Jun 30, 2023 1 min read [\#http](https://scrapfly.io/blog/tag/http) [\#tools](https://scrapfly.io/blog/tag/tools) 

 [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-mitmproxy-certificate "Share on LinkedIn")    

 

 

[mitproxy](https://pypi.org/project/mitmproxy/) is a popular man in the middle proxy used in web scraping operations. However, to use it for scraping `https` websites the custom certificate must be installed.

For Chrome and Chromium browsers follow these steps:

1. Install `mitmproxy` using `pip install mitmproxy` or your systems package manager like:
    - Ubuntu: `sudo apt install mitmproxy`
    - MacOs: `brew install mitmproxy`
    - Windows: download binary from mitmproxy.org
2. Run `mitmproxy` in the terminal and it'll start a proxy on `localhost:8080` on your machine.
3. Start Chrome instance with `mitmproxy` proxy attached to it:
    - Linux: `google-chrome --proxy-server="localhost:8080"`
    - MacOs: `open -a "Google Chrome" --args --proxy-server="localhost:8080"`
    - Windows: `chrome.exe --proxy-server="localhost:8080"`
4. Open `http://mitm.it` in the browser and download the certificate for your system.
5. Install the certificate to your Chrome or Chromium browser:
    1. Open `chrome://settings/certificates` in the browser.
    2. Click on `Authorities` tab.
    3. Click on `Import` button and select the certificate from the step 4.



Now `mitmproxy` will be able to intercept and decrypt all `https` traffic going through it. This enables it being used with headless browser tools like Selenium, Playwright or Puppeteer.



 

   Table of Contents















 

   Join the Newsletter  Get monthly web scraping insights 

 

  



Scale Your Web Scraping

Anti-bot bypass, browser rendering, and rotating proxies, all in one API. Start with 1,000 free credits.

  No credit card required  1,000 free API credits  Anti-bot bypass included 

 [Start Free](https://scrapfly.io/register) [View Docs](https://scrapfly.io/docs/onboarding) 

 Not ready? Get our newsletter instead. 

 

## Explore this Article with AI

 [ ChatGPT ](https://chat.openai.com/?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-mitmproxy-certificate) [ Gemini ](https://www.google.com/search?udm=50&aep=11&q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-mitmproxy-certificate) [ Grok ](https://x.com/i/grok?text=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-mitmproxy-certificate) [ Perplexity ](https://www.perplexity.ai/search/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-mitmproxy-certificate) [ Claude ](https://claude.ai/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-mitmproxy-certificate) 



 ## Related Articles

 [  

 http curl 

### How to Ignore cURL SSL Errors

Learn to handle SSL errors in cURL, including using self-signed certificates. Explore common issues, safe practices.

 

 ](https://scrapfly.io/blog/posts/guide-to-curl-ignore-ssl-errors) [  

 http 

### Guide to SSL Errors: What do they mean and how to fix them

Overview of SSL errors - what are they, what are common issues and how to resolve them.

 

 ](https://scrapfly.io/blog/posts/guide-to-ssl-error-meaning-and-fixes) [  

 python nodejs 

### How to use Headless Chrome Extensions for Web Scraping

In this article, we'll explore different useful Chrome extensions for web scraping. We'll also explain how to install Ch...

 

 ](https://scrapfly.io/blog/posts/how-to-use-browser-extensions-with-playwright-puppeteer-and-selenium) 

  ## Related Questions

- [ Q How To Copy as cURL With Google Chrome? ](https://scrapfly.io/blog/answers/how-to-copy-as-curl-with-chrome)
- [ Q HTTP vs HTTPS in web scraping ? ](https://scrapfly.io/blog/answers/http-vs-https-in-web-scraping)
- [ Q How to fix Python requests SSLError? ](https://scrapfly.io/blog/answers/python-requests-exception-sllerror)
- [ Q What is MITM and how is it used in web scraping? ](https://scrapfly.io/blog/answers/what-is-mitm-proxy-and-how-is-it-used-web-scraping)
 
  



   



 Scale your web scraping effortlessly, **1,000 free credits** [Start Free](https://scrapfly.io/register)