Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Unencrypted connection (ws://) throws 'SSLHandshake failed' #117

Open
sjkummer opened this issue Feb 14, 2019 · 1 comment
Open

Unencrypted connection (ws://) throws 'SSLHandshake failed' #117

sjkummer opened this issue Feb 14, 2019 · 1 comment

Comments

@sjkummer
Copy link
Contributor

sjkummer commented Feb 14, 2019

Hi there,

While developing & debugging, it is convenient to use the meteor server 'out of the box' without further ssl proxy configuration.

But actually, the SwiftDDP refuses to connect when using the "ws:" scheme and logs SSL errors.

The 'Allow Arbitrary Loads' flag is enabled in the Xcode project settings.

Meteor.connect("ws://10.0.0.10:3000/websocket")

019-02-14 11:07:48.185595+0100 APP[2154:1017819] CFNetwork SSLHandshake failed (-9806)
2019-02-14 11:07:48.185617+0100 APP[2154:1017819] TCP Conn 0x28195fcc0 SSLHandshake failed (-9806)
[Error] [DDP] [SwiftWebSocket] [55] DDPEvents > websocket error Network(The operation couldn’t be completed. (OSStatus error -9806.))
[Info] [DDP] [main] [191] connect(_:callback:) > Web socket connection closed with code 0. Clean: false. 
@sjkummer
Copy link
Contributor Author

Well, as a workarround, make sure to never set Meteor.client.allowSelfSignedSSL = true while using the "ws:" scheme

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant