开发者

SSL Domain Error in IPhone- https connection

开发者 https://www.devze.com 2022-12-08 15:24 出处:网络
I am using CFNetwork to connect to a h开发者_如何学Pythonttps webservice , whose server is a Verisign certified. I get the appropriate response from the serversome times. But the rest of the time I am

I am using CFNetwork to connect to a h开发者_如何学Pythonttps 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


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.


You should check the date and time on your device or simulator. A wrong time/date will prevent you from connecting.

0

精彩评论

暂无评论...
验证码 换一张
取 消