{"action":"created","issue":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/681","labels_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/681/comments","events_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/681/events","html_url":"https://github.com/Alamofire/Alamofire/issues/681","id":100555438,"number":681,"title":"Some issues when using ServerTrustPolicy / ServerTrustPolicyManager","user":{"login":"pvegh","id":3873889,"avatar_url":"https://avatars.githubusercontent.com/u/3873889?v=3","gravatar_id":"","url":"https://api.github.com/users/pvegh","html_url":"https://github.com/pvegh","followers_url":"https://api.github.com/users/pvegh/followers","following_url":"https://api.github.com/users/pvegh/following{/other_user}","gists_url":"https://api.github.com/users/pvegh/gists{/gist_id}","starred_url":"https://api.github.com/users/pvegh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvegh/subscriptions","organizations_url":"https://api.github.com/users/pvegh/orgs","repos_url":"https://api.github.com/users/pvegh/repos","events_url":"https://api.github.com/users/pvegh/events{/privacy}","received_events_url":"https://api.github.com/users/pvegh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Alamofire/Alamofire/labels/support","name":"support","color":"FC6808"}],"state":"closed","locked":false,"assignee":{"login":"cnoon","id":169110,"avatar_url":"https://avatars.githubusercontent.com/u/169110?v=3","gravatar_id":"","url":"https://api.github.com/users/cnoon","html_url":"https://github.com/cnoon","followers_url":"https://api.github.com/users/cnoon/followers","following_url":"https://api.github.com/users/cnoon/following{/other_user}","gists_url":"https://api.github.com/users/cnoon/gists{/gist_id}","starred_url":"https://api.github.com/users/cnoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnoon/subscriptions","organizations_url":"https://api.github.com/users/cnoon/orgs","repos_url":"https://api.github.com/users/cnoon/repos","events_url":"https://api.github.com/users/cnoon/events{/privacy}","received_events_url":"https://api.github.com/users/cnoon/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-08-12T14:25:37Z","updated_at":"2015-08-12T15:39:28Z","closed_at":"2015-08-12T15:22:15Z","body":"Accessing a server with \"invalid\" certificate worked with 1.2.x, but increased default security measures stop it from working in 1.3.x.\r\n\r\n##### High five for this guys!\r\n\r\nSo trying to turn off this check for the machine until the issue is fixed on their side. Based on the documentation at\r\nhttps://github.com/Alamofire/Alamofire#server-trust-policy-manager\r\n\r\nI should be able to fix it with this small piece code:\r\n```\r\n   let serverTrustPolicies: [String: ServerTrustPolicy] = [\r\n     \"the.insecure.hostname\": .DisableEvaluation\r\n   ]\r\n   let manager = Manager(\r\n     configuration: NSURLSessionConfiguration.defaultSessionConfiguration(),\r\n     serverTrustPolicyManager: ServerTrustPolicyManager(policies: serverTrustPolicies)\r\n   )\r\n   manager.request(.GET, ...)   // Instead of previously Alamofire.request(.GET, ...)\r\n```\r\nBut I seem not to be able to *send* the request out anymore. Response is nil in responseJSON(), and the proxy does not show any outgoing traffic.\r\n\r\nThis error shows in the console:\r\n```\r\nNSURLErrorDomain, -999\r\n```\r\n\r\nAny idea what I or the documentation might be missing?"},"comment":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/comments/130346233","html_url":"https://github.com/Alamofire/Alamofire/issues/681#issuecomment-130346233","issue_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/681","id":130346233,"user":{"login":"cnoon","id":169110,"avatar_url":"https://avatars.githubusercontent.com/u/169110?v=3","gravatar_id":"","url":"https://api.github.com/users/cnoon","html_url":"https://github.com/cnoon","followers_url":"https://api.github.com/users/cnoon/followers","following_url":"https://api.github.com/users/cnoon/following{/other_user}","gists_url":"https://api.github.com/users/cnoon/gists{/gist_id}","starred_url":"https://api.github.com/users/cnoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnoon/subscriptions","organizations_url":"https://api.github.com/users/cnoon/orgs","repos_url":"https://api.github.com/users/cnoon/repos","events_url":"https://api.github.com/users/cnoon/events{/privacy}","received_events_url":"https://api.github.com/users/cnoon/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T15:39:28Z","updated_at":"2015-08-12T15:39:28Z","body":"Fair enough. I pushed 9a1e321c to address this. Thanks!"}}