Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

WebSockets with iOS 8

I'm working on a web application that uses web sockets. It works find on iOS 7 devices, but when I attempt to connect to connect to the web socket with a brand new iPad Air running iOS 8, it throws the following exception:


'WebSocket network error: The operation couldn’t be completed. (OSStatus error -9807.)'


Does anyone know what that exception means? I haven't had any luck searching online.


Technical details:


Server: Jetty 9.2


Javascript snippet:

connection = new WebSocket('wss://' + endpoint + '/remote-control/', ['soap', 'xmpp']);

iPad Air, iOS 8.1.2

Posted on Dec 16, 2014 9:53 PM

Reply
3 replies

Dec 16, 2014 9:56 PM in response to grahamtt

I figured out that this is due to using a self-signed certificate. iOS 8 (or the latest version of Safari; I'm not sure which) is more strict about screening self-signed certificates. I haven't found a work-around at this time, except for not using SSL from the iOS devices in while testing my app.


Here is the stackoverflow link that clued me into the problem: http://stackoverflow.com/questions/23493494/sksmtpmessage-error-the-operation-co uldnt-be-completed-osstatus-error-9807


Does anyone know of a way to allow a self-signed certificate using web sockets on iOS 8?

Dec 17, 2014 7:14 AM in response to grahamtt

grahamtt wrote:


I figured out that this is due to using a self-signed certificate. iOS 8 (or the latest version of Safari; I'm not sure which) is more strict about screening self-signed certificates. I haven't found a work-around at this time, except for not using SSL from the iOS devices in while testing my app.


Here is the stackoverflow link that clued me into the problem: http://stackoverflow.com/questions/23493494/sksmtpmessage-error-the-operation-co uldnt-be-completed-osstatus-error-9807


Does anyone know of a way to allow a self-signed certificate using web sockets on iOS 8?

Have you seen this: http://blog.httpwatch.com/2013/12/12/five-tips-for-using-self-signed-ssl-certifi cates-with-ios/

WebSockets with iOS 8

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.