Search code examples
iphoneiphone-sdk-3.0sslhttps

SSL Domain Error in IPhone- https connection


I am using CFNetwork to connect to a https webservice , whose server is a Verisign certified. I get the appropriate response from the server some times. But the rest of the time I am getting two kind of errors. 1."Operation could not be completed. (kCFStreamErrorDomainSSL error -9807.) 2."Operation could not be completed. (kCFStreamErrorDomainSSL error -4.)"

I am using SDK 3.0 and tested it in 3.1 also. I don't get a consistent result. Please some one help me to solve the issue.

Regards, Krishnan


Solution

  • The problem only occurred in the simulator and not in the Device. So if some one comes across this problem, please check in your device and it should work.