• 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
NSURLRequest SSL Mac vs iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURLRequest SSL Mac vs iPhone


  • Subject: NSURLRequest SSL Mac vs iPhone
  • From: Greg Hoover <email@hidden>
  • Date: Fri, 16 Oct 2009 00:48:02 -0700

I have the same piece of code making a secure request to a server in a Mac application and in an iPhone app. Both use an NSURLRequest with exactly the same settings, message, body, etc. On the Mac, the request succeeds, returning the data expected. On the iPhone however, the request fails with an "untrusted server certificate" error (NSURLErrorDomain -1202).

I suspected that the iPhone implementation somehow doesn't have access to the root certificates, so I checked on the servers SSL cert using openssl. Openssl says: "unable to verify the first certificate". So now I figure that the Mac (10.6.1) implementation just allows the request to proceed when the verification fails (it doesn't return an error of any kind actually). Can anyone shed some light on this?

Thanks,
Greg
_______________________________________________

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: NSURLRequest SSL Mac vs iPhone
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: Status Bar Search Field Can't Get Focus w/ LSUIElement PList Setting
  • Next by Date: Re: Status Bar Search Field Can't Get Focus w/ LSUIElement PList Setting
  • Previous by thread: Re: How to detect and disable/delay sleep event in cocoa for some critical threads to complete
  • Next by thread: Re: NSURLRequest SSL Mac vs iPhone
  • Index(es):
    • Date
    • Thread