• 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: How to use NWTCPConnectionAuthenticationDelegate for self signed certificate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use NWTCPConnectionAuthenticationDelegate for self signed certificate


  • Subject: Re: How to use NWTCPConnectionAuthenticationDelegate for self signed certificate
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Wed, 02 Dec 2015 10:18:00 +0000

On 2 Dec 2015, at 02:14, Kevin Yu <email@hidden> wrote:

> I’ve tried with no luck

What does "no luck" mean?  Were you unable to create the trust object?  Or did its evaluation fail?

> here’s my code, any suggestion?

The first step is to /not/ ignore the errors you get back from Security framework rotuines like SecTrustCreateWithCertificates and SecTrustEvaluate.

Next, if trust evaluation is failing, you can print the result of SecTrustCopyProperties and SecTrustCopyResult to get an understanding as to why it's failing.

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


  • Prev by Date: Re: Problem with connection via Proxy using CFNetwork in TCP stream
  • Next by Date: Re: What happens when an NSURLSessionTask is canceled?
  • Previous by thread: Re: How to use NWTCPConnectionAuthenticationDelegate for self signed certificate
  • Next by thread: Re: How to use NWTCPConnectionAuthenticationDelegate for self signed certificate
  • Index(es):
    • Date
    • Thread