12008 Views 5 Replies Latest reply: Oct 22, 2008 4:18 AM by email@example.com
I had the same problem. After some research I came across a solution that works but it's not officially supported. In your implementation class using NSURLRequest at the following lines:
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host
return YES; // Or whatever logic
This overrides this method. Simply returning YES here is potentially dangerous of course so you may need to return YES in a more controlled fashion. But it should get you further.
i've tried this solution and it work's fine.
Now, the problem is that sometimes I'm using NSData to request data from a server and this solution is not available for that class.
It would be great having an api to change the security policies for the entire application. I mean creating a policy object and setting it for the application.
Does anybody know how to do it?
Thanks in advance