When developing custom VPN solution, we want to use “createTCPConnectionToEndpoint" function with TLS on to connect a server only can provide self-signed certificates;
I think we can use the NWTCPConnectionAuthenticationDelegate and it’s function evaluateTrustForConnection() to do the trick, however, I did not found how to write this function in order to create a SecTrustRef and send out via completion handler. Is there any sample code can show us how to write such function? or there exist more simple approach to deal with self-signed certificate server? any help is appreciate! cheers, Kevin
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com This email sent to arch...@mail-archive.com