facebookincubator / SocketRocket

A conforming Objective-C WebSocket client library.
Other
9.53k stars 2.01k forks source link

SSL Client #594

Open kimiLove6 opened 5 years ago

kimiLove6 commented 5 years ago

Hello,can you help me?How to support for client SSL certificate authentication

john-07 commented 5 years ago

i have code for NSURLConnection delegate:

case  NSURLAuthenticationMethodClientCertificate:
            if let credential = serverContext?.credential {
                challenge.sender!.use(credential, for:challenge);
            }else{
                challenge.sender!.cancel(challenge);
            }

Where i can catch willSendRequestFor NSURLAuthenticationMethodClientCertificate ?