NVentimiglia / Websockets.PCL

C# Websockets for all platforms using native bridges
MIT License
98 stars 36 forks source link

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

Open Raj123456788 opened 8 years ago

Raj123456788 commented 8 years ago

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.

gcadmes commented 7 years ago

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

NVentimiglia commented 7 years ago

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

gcadmes commented 7 years ago

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 commented 7 years ago

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 :-)

NVentimiglia commented 7 years ago

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.

gcadmes commented 7 years ago

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 :-)

NVentimiglia commented 7 years ago

About the same here. No test cloud here.

LeonanFragaLeonardo commented 6 years ago

Has anyone solved this problem?