This discussion is archived
11640 Views 5 Replies Latest reply: Oct 22, 2008 4:18 AM by email@example.com
Currently Being ModeratedAug 7, 2008 12:49 AM (in response to digitalbeing)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.15" MacBook Pro Intel Core Duo 2.0GHz, 2GB RAM, Mac OS X (10.5.4), iPod touch 16GB, iPhone 16GB
Currently Being ModeratedSep 24, 2008 8:50 AM (in response to RickMaddy)Hi all,
I haven't tried this solutionyet, I wonder however if there is a solution for this problem. Right now I am getting a 'Error - bad server certificate'.
Isn't possible to install our own CA certificate?
RodMacBook Pro, Mac OS X (10.5.5), iPhone 2.1, XCode 2.1.1
Currently Being ModeratedOct 15, 2008 9:50 AM (in response to RickMaddy)I'm new to this and haven't yet tried HTTPS URL's, but, how would one get the details of the Certificate to present for acceptance by the user in your example?MacBook Pro 17, Mac OS X (10.5.5)
Currently Being ModeratedOct 22, 2008 3:43 AM (in response to DFuller)Hello everybody,
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 advanceiMac, Mac OS X (10.5.5), iMac
Currently Being ModeratedOct 22, 2008 4:18 AM (in response to firstname.lastname@example.org)Hi there,
sorry but I was wrong. It seems that placing the categorized NSURLRequest implementation in any place in your code, all request bypass the certificate trust issue.
Now my problem is solved, but still is a non official solution...
Thanks millioniMac, Mac OS X (10.5.5), iMac