certutil.exe -addstore root mitmproxy-ca-cert.cer
(details).
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
sudo security add-trusted-cert -d -p ssl -p basic -k /Library/Keychains/System.keychain mitmproxy-ca-cert.pemSome 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.
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.