• 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: Configure socket used by NSURLConnection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Configure socket used by NSURLConnection?


  • Subject: Re: Configure socket used by NSURLConnection?
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Tue, 29 Jul 2014 18:11:40 +0100

On 29 Jul 2014, at 16:31, Jeffrey Walton <email@hidden> wrote:

> I'm trying to set cipher suites on an SSL/TLS connection before using NSURLConnection and delegate.

That's not possible.  As Jens pointed out, there's no one-to-one relationship between NSURLConnection requests and the sockets they go over, which makes this sort of thing impossible in the NSURLConnection space.

There is some support for this sort of thing in NSURLSession.  Specifically, you can configure the TLS protocol version using the TLSMinimumSupportedProtocol and TLSMaximumSupportedProtocol properties of the configuration used to create the session.  Alas, there's no control over cypher suites.

The highest level API that supports customisable cypher suites is CFSocketStream.  With that you can get the Secure Transport context (kCFStreamPropertySSLContext) and tweak things from there.  Alas, getting HTTP to run on top of that is somewhat challenging, especially if you're looking for standards compliant HTTP 1.1 support.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
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


  • Follow-Ups:
    • Re: Configure socket used by NSURLConnection?
      • From: Jeffrey Walton <email@hidden>
References: 
 >Configure socket used by NSURLConnection? (From: Jeffrey Walton <email@hidden>)

  • Prev by Date: Re: Configure socket used by NSURLConnection?
  • Next by Date: Re: Configure socket used by NSURLConnection?
  • Previous by thread: Re: Configure socket used by NSURLConnection?
  • Next by thread: Re: Configure socket used by NSURLConnection?
  • Index(es):
    • Date
    • Thread