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
Sort By: 

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?

Reply

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/

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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 Account.