{"action":"created","issue":{"url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/803","labels_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/803/comments","events_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/803/events","html_url":"https://github.com/mitmproxy/mitmproxy/issues/803","id":111711017,"number":803,"title":"Mitmproxy doesn't seem to work with ios9","user":{"login":"niravnagda","id":3596005,"avatar_url":"https://avatars.githubusercontent.com/u/3596005?v=3","gravatar_id":"","url":"https://api.github.com/users/niravnagda","html_url":"https://github.com/niravnagda","followers_url":"https://api.github.com/users/niravnagda/followers","following_url":"https://api.github.com/users/niravnagda/following{/other_user}","gists_url":"https://api.github.com/users/niravnagda/gists{/gist_id}","starred_url":"https://api.github.com/users/niravnagda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niravnagda/subscriptions","organizations_url":"https://api.github.com/users/niravnagda/orgs","repos_url":"https://api.github.com/users/niravnagda/repos","events_url":"https://api.github.com/users/niravnagda/events{/privacy}","received_events_url":"https://api.github.com/users/niravnagda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-10-15T21:26:33Z","updated_at":"2015-12-11T15:33:48Z","closed_at":"2015-12-09T16:56:18Z","body":"Hi,\r\nI am trying to get the proxy working with ios9 and the ATS in the new os, is somehow not allowing the apps to recognize the certificate\r\n\r\nI am getting \"the client may not trust the proxy's certificate\" error. I have certificate installed in the device"},"comment":{"url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/comments/163965333","html_url":"https://github.com/mitmproxy/mitmproxy/issues/803#issuecomment-163965333","issue_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/803","id":163965333,"user":{"login":"jvillacorta","id":10280632,"avatar_url":"https://avatars.githubusercontent.com/u/10280632?v=3","gravatar_id":"","url":"https://api.github.com/users/jvillacorta","html_url":"https://github.com/jvillacorta","followers_url":"https://api.github.com/users/jvillacorta/followers","following_url":"https://api.github.com/users/jvillacorta/following{/other_user}","gists_url":"https://api.github.com/users/jvillacorta/gists{/gist_id}","starred_url":"https://api.github.com/users/jvillacorta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvillacorta/subscriptions","organizations_url":"https://api.github.com/users/jvillacorta/orgs","repos_url":"https://api.github.com/users/jvillacorta/repos","events_url":"https://api.github.com/users/jvillacorta/events{/privacy}","received_events_url":"https://api.github.com/users/jvillacorta/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T15:33:48Z","updated_at":"2015-12-11T15:33:48Z","body":"I have an implementation based on the flow basic example (https://github.com/mitmproxy/mitmproxy/blob/master/examples/flowbasic), I removed the certificates and started the proxy again.\r\n\r\nUsing mitmproxy or mitmdump, I do not have any problems with iOS9 ATS, but as soon as I try it with the flow_basic.py sample the iOS devices rejects the connection with the following error:\r\n```\r\n2015-12-11 10:04:56.396 sampleapp[259:9872] CFNetwork SSLHandshake failed (-9824)\r\n2015-12-11 10:04:56.397 sampleapp[259:9872] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)\r\n```\r\nAll SSL connections without ATS work fine, I can manipulate the flow and there are no problems. Am I missing something here?"}}