Re: How to use NWTCPConnectionAuthenticationDelegate for self signed certificate
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