I am using NSStream to do the handshake as server, handshake is successful there is not issue. i get the client certificate and i validate and store it in to keychain.
Now problem is i want to throw exception and it has to be sent through the stream to external device if the certificate is not there in the key chain.
I have to throw the exception because external device implementation is like that only. Can any body help me how to throw exception if the certificate is not there in the keychain.