Websockets.PCL icon indicating copy to clipboard operation
Websockets.PCL copied to clipboard

Unable to Connect wss://IP address/: Self signed SSL Issue

Open Raj123456788 opened this issue 7 years ago • 8 comments

Hello There, I tried running your sample code and getting this error: Peer not trusted by any of the system trust managers.koushikdutta.async.AsyncSSLException.

This only happens for wss:// & on Android platform

Waiting for the answer.

Raj123456788 avatar Sep 30 '16 22:09 Raj123456788

Nicolas,

Is this project dead? There hasn't been any commits for a very long time, and regarding the aforementioned issue, you haven't replied in over 3 months to Raj123456788's original question regarding SSL/TLS.

Is there any more traction for this project? Just wondering if I need to fork it myself.. please let me know, thx

gcadmes avatar Dec 16 '16 15:12 gcadmes

Regretfully, I do not have the time to make improvements.

NVentimiglia avatar Dec 16 '16 17:12 NVentimiglia

Fair enough.

However, if you ever do find the time to improve the project, currently the iOS project does not allow for untrusted SSL certificates (aka: Self Signed). By simply adding a third nullable argument on the Open API will allow you to instruct the SocketRocket Websocket to 'allowUntrustedSSLCertificates'.

I've tested this and it does work. That being said, I would do a PR and change it myself, however, as you already know, TLS does not work in your android project either. Therefore If I only had to fix TLS issues for one platform, I would take on the challenge.

gcadmes avatar Jan 05 '17 13:01 gcadmes

One last thing, it appears the android fix for your BridgeController TLS issue is mentioned in the last comment on this thread: https://github.com/koush/AndroidAsync/issues/393

Hope this inspires you to fix the BridgeController :-)

gcadmes avatar Jan 05 '17 14:01 gcadmes

The real time sink is testing out any new features on devices. But thanks, I will keep this in mind when I find the time again.

NVentimiglia avatar Jan 05 '17 16:01 NVentimiglia

Good point. May I ask, when you do testing, how many devices do you test it on? Asking because I'm hoping my company buys a license to the Xamarin Test Cloud. Unfortunately, the only devices I have at my disposal are iPads and two android tablets (Samsung Galaxy and Asus Nexus both running Nuget).

thanks much, and thank you for the WebsocketsPCL lib :-)

gcadmes avatar Jan 05 '17 16:01 gcadmes

About the same here. No test cloud here.

NVentimiglia avatar Jan 06 '17 14:01 NVentimiglia

Has anyone solved this problem?

LeonanFragaLeonardo avatar Mar 12 '18 15:03 LeonanFragaLeonardo