This is a setup for 'universal Android MITM' using the emSign or Sectigo cross-signing (which you need is per-app!)
It isn't original research, just throwing together Fluepke/emudrahahahahaha and various sources for the signed certs to make a usable CA chain.
The main reason I... assembled/consolidated/idk this bundle is because it's useful for:
- Reverse engineering
- Defeating lazy or accidental certificate pinning setups
- If you distrust your Android (or 'Android') vendor but you can't change system CA (user CA certs may as well not exist on Android)
The two things to cover are:
- Setting up
mitmproxy/mitmwebin the first place to use one of the CA .pem files - Settting it up in such a way to let your Android device actually connect to the MITM
The easiest way to do these is to use mitmproxy's WireGuard mode.
For point 1. mitmproxy is going to look for mitmproxy-ca.pem and will generate its own files if it does not find it.
You have to put the mitmproxy-ca.pem you want (must be named that, no -emsign or -sectigo suffix) into its config directory before it generates its own files.
Alternatively (and much more realistically): Start it, immediately shut it down, find its config dir, delete the certs/keys in the config dir except wireguard.conf and mitmproxy-ca.pem, overwrite mitmproxy-ca.pem and then start it back up again.
For point 2. The commands to poke at are:
mitmweb --mode wireguard(default config)mitmweb --mode wireguard --set confdir=myconfdir(custom config dir)
Obviously if you poke in the manual there are all sorts of ways to run it, it's just this is the Obviously Correct Way Which Is Least Painful.
Reading material: