• 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: Custom SSL trust settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom SSL trust settings


  • Subject: Re: Custom SSL trust settings
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 28 Jan 2009 07:54:24 -0800


On Jan 27, 2009, at 11:44 PM, Ryan Govostes wrote:

So, I would like to be able to explicitly control trust in my code. I cannot see any documentation on NSURLConnection related to this; is there a way to control its trust verification?

I ran into this last year. IIRC, there is no really fine-grained way to control certificate checking at this high level. You'd have to drop down to the low-level SSL APIs and run the TCP connection yourself, doing your own HTTP parsing. Yuck.


If you could check the socket's SSL state in one of your NSURLConnection delegate callbacks, then you could at least abort the connection if the cert didn't meet your standards; but there's not any API to get to that either...

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Custom SSL trust settings (From: Ryan Govostes <email@hidden>)

  • Prev by Date: Custom SSL trust settings
  • Next by Date: Leopard SAN/NAS Issues Copying To-From
  • Previous by thread: Custom SSL trust settings
  • Next by thread: Leopard SAN/NAS Issues Copying To-From
  • Index(es):
    • Date
    • Thread