Re: Re: NSURLConnection Certificate Problem
Re: Re: NSURLConnection Certificate Problem
- Subject: Re: Re: NSURLConnection Certificate Problem
- From: David Young <email@hidden>
- Date: Wed, 19 Jan 2005 15:13:52 -0800
As far as I know, there's no "official" way to do this. I've filed an
enhancement request with Apple about it, so we'll see what happens.
For now, you can override a private AppKit method with a category
(yuck):
@implementation NSURLRequest(NSHTTPURLRequest)
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host
{
return YES; // Or whatever logic
}
@end
I've verified that this works with all released versions of the URL
loading system (e.g., Mac OS X 10.2.7 -> 10.3.7). However, I'd be
delighted to hear about a better solution.
--dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden