• 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
How to handle bad certificate error in NSURLDownload?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to handle bad certificate error in NSURLDownload?


  • Subject: How to handle bad certificate error in NSURLDownload?
  • From: "parag vibhute" <email@hidden>
  • Date: Mon, 19 May 2008 17:37:00 +0530

Hi all,

I am using NSURLDownload class to download a file through https. But I get
error "bad server certificate". I know this error occurs when HTTPS server
has bad certificate. I want to allow this download even though certificate
is bad. So can anybody tell how can I handle this?

I searched google but found that there is following private API exists

            [NSURLRequest setAllowsAnyHTTPSCertificate:YES forHost:[[[error
userInfo] objectForKey:@"NSErrorFailingURLKey"] host]];

But since this is private API, I think I can't use it in commercial
application. Can I?


Thanks,
Palav




--

There are many things in your life that will catch your eye but only a few
will catch your heart....pursue those'.
_______________________________________________

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

  • Follow-Ups:
    • Re: How to handle bad certificate error in NSURLDownload?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Cocoa et al as HCI usability problem
  • Next by Date: Programmatically get treecontroller selection
  • Previous by thread: Re: Bindings: Allows Editing Multiple Values Selection
  • Next by thread: Re: How to handle bad certificate error in NSURLDownload?
  • Index(es):
    • Date
    • Thread