On Jan 28, 2009, at 10:41 PM, Erg Consultant wrote:

The data comes back with a zero length. Inspecting the error reveals that it's an untrusted server certificate error. Is there any way to ignore certificates in my request, or to tell NSURLConnection to ignore/not use them or to get the data anyway?


There is a way, but unfortunately you must use a private API:

@interface NSURLRequest (SomePrivateAPIs)
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host;
+ (void)setAllowsAnyHTTPSCertificate:(BOOL)allows forHost:(NSString *) host;
@end

Please file a bug asking for this API to be opened up.

Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to