mitmproxy/addons/onboardingapp/templates/index.html
{% extends "layout.html" %} {% block content %}
{% macro entry(title, icon, filetype="pem") -%}- {% include 'icons/' + icon + '-brands.svg' %}
🔏 Get mitmproxy-ca-cert.{{ filetype }}📖 Show Instructions📖 Hide Instructions {{ caller() }}
{%- endmacro %} {% call entry('Windows', 'windows', 'p12') %}
certutil.exe -addstore root mitmproxy-ca-cert.cer (details).{% endcall %} {% call entry('Linux', 'linux') %}
mv mitmproxy-ca-cert.pem /usr/local/share/ca-certificates/mitmproxy.crtsudo update-ca-certificatesmv mitmproxy-ca-cert.pem /etc/pki/ca-trust/source/anchors/sudo update-ca-trustsudo trust anchor --store mitmproxy-ca-cert.pem
{% endcall %} {% call entry('macOS', 'apple') %}
sudo security add-trusted-cert -d -p ssl -p basic -k /Library/Keychains/System.keychain mitmproxy-ca-cert.pem{% endcall %} {% call entry('iOS – please read the instructions!', 'apple') %}
{% endcall %} {% call entry('Android', 'android', 'cer') %}
Some Android distributions require you to install the certificate via Settings -> Security -> Advanced -> Encryption and credentials -> Install a certificate -> CA certificate (or similar) instead.
Warning: Apps that target Android API Level 24 (introduced in 2016) and above only accept certificates from the system trust store (#2054). User-added CAs are not accepted unless the application manually opts in. Except for browsers, you need to patch most apps manually (Android network security config).
Alternatively, if you have rooted the device and have Magisk installed, you can install this Magisk module via the Magisk Manager app.
{% endcall %} {% call entry('Firefox (does not use the OS root certificates)', 'firefox-browser') %}
{% endcall %} - {% include 'icons/certificate-solid.svg' %}
🔏 Get mitmproxy-ca-cert.pem🔏 Get mitmproxy-ca-cert.p12
Other mitmproxy users cannot intercept your connection. This page is served by your local mitmproxy instance. The certificate you are about to install has been uniquely generated on mitmproxy's first run and is not shared between mitmproxy installations.
{% endblock %}