How to install the __mitmproxy__ certificate authority in the IOS simulator:

1. First, check out the ADVTrustStore tool from github.
2. Now, run the following command:

       ./iosCertTrustManager.py -a ~/.mitmproxy/mitmproxy-ca-cert.pem

Note that although the IOS simulator has its own certificate store, it shares the proxy settings of the host operating system. You will therefore to have configure your OSX host's proxy settings to use the mitmproxy instance you want to test with.