• 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: SSL NSURLConnection to fake-cert server?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSL NSURLConnection to fake-cert server?


  • Subject: Re: SSL NSURLConnection to fake-cert server?
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 20 Mar 2012 09:39:18 +0000


Sent from my iPad

On 20 Mar 2012, at 05:16 AM, Rick Mann <email@hidden> wrote:

> I'm connecting to my dev server which has a self-signed cert. When I do this, NSURLConnection complains with:
>
> NSLocalizedDescription = "An SSL error has occurred and a secure connection to the server cannot be made.";
>    NSLocalizedRecoverySuggestion = "Would you like to connect to the server anyway?";
>    NSUnderlyingError = "Error Domain=kCFErrorDomainCFNetwork Code=-1200 \"An SSL error has occurred and a secure connection to the server cannot be made.\"
>
> My answer is, "Yes!", but I don't know how to tell it.
>
> What do I need to do to?

This error likely has a recovery attempted associated with it. You are supposed to use one of the -presentError:… methods to display it and let the user choose what to do.

> I'm using
>
> -sendAsynchronousRequest:queue:completionHandler:
>
> So I can't set a delegate.

Well you can. You could switch to using the delegate-based API.
>
> --
> Rick
>
>
> _______________________________________________
>
> 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

_______________________________________________

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: 
 >SSL NSURLConnection to fake-cert server? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: The use of UIActionSheet mysteriously disables our app with a white screen after memory warning.
  • Next by Date: Re: The use of UIActionSheet mysteriously disables our app with a white screen after memory warning.
  • Previous by thread: Re: SSL NSURLConnection to fake-cert server?
  • Next by thread: Re: SSL NSURLConnection to fake-cert server?
  • Index(es):
    • Date
    • Thread