How to configure CFStream (or NSStream) for SSL handshake?
问题 I'm using CFStream/NSStream to make http connections. I want to be able to detect that a SSL handshake fails for three cases: case A: server is not trusted case B: server is trusted but asks a client certificate case C: server is not trusted and it asks a client certificate Today without doing anithing on the SSL Properties of my CFStream, I get: case A: error -9807 case B: no error but server refuses the connection (error 500) case C: error 9807 Is there a way to configure CFStream to