IOS
How to install the mitmproxy certificate authority on IOS devices:
1: Set up the Mail app on the device to receive email.
2: Mail the mitmproxy-ca-cert.pem file to the device, and tap on the attachment.
3: You will be prompted to install a profile. Click "Install":

4: Accept the warning by clicking "Install" again:

5: The certificate should now be trusted:
