NSURLRequest SSL Mac vs iPhone
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