• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLConnection & ignoring untrusted server certificates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection & ignoring untrusted server certificates


  • Subject: Re: NSURLConnection & ignoring untrusted server certificates
  • From: Scott Anguish <email@hidden>
  • Date: Thu, 29 Jan 2009 16:35:44 -0500

and in the meantime, don't use the private API. If it changes, your app breaks.

On 29-Jan-09, at 11:09 AM, Nick Zitzmann wrote:


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.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >NSURLConnection & ignoring untrusted server certificates (From: Erg Consultant <email@hidden>)
 >Re: NSURLConnection & ignoring untrusted server certificates (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSTask Leaking...
  • Next by Date: Re: NSTask Leaking...
  • Previous by thread: Re: NSURLConnection & ignoring untrusted server certificates
  • Next by thread: Re: NSURLConnection & ignoring untrusted server certificates
  • Index(es):
    • Date
    • Thread