flutter-webrtc / flutter-webrtc-server

A simple WebRTC signaling server for flutter-webrtc.
MIT License
756 stars 304 forks source link

TLS handshake error from [::1]:57330: remote error: tls: unknown certificate #32

Closed kushankurxd closed 4 years ago

kushankurxd commented 4 years ago

I tried running server on localhost its cool. But when trying to use flutter web to connect to localhost server it throws this exception.

snapshot

I think there is problem with the SSL public certificate validation as I looked into it its validation is upto April 2019.

Thanks in advance :)

chhota89 commented 4 years ago

@kushankurxd How to resolve this issue?

abheet-98 commented 4 years ago

@kushankurxd How did you resolve this issue? It'll be very kind of you if you explain us the solution. Thanks in advance !

abheet-98 commented 4 years ago

@chhota89 Is your issue resolved?

bugrakufeci commented 4 years ago

I couldn't solve the issue but I noticed that I get handshake error only on browser, it works fine on mobile devices/emulators.

Also I have noticed that there is no issue on old version. You can reach it on branches > old. It works completely fine, might be a temporary solution. @abheet-98

abheet-98 commented 4 years ago

Thanks for a response @tavuskusu ! Actually I'm not able to have a p2p call and couldn't get proper instructions by reading the README.md So if you could help me out to have a p2p call between 2 phones on the same network using this webrtc server. If you could tell me in steps how to have a quick test of this demo app and the webRTCserver . Thanks !

bugrakufeci commented 4 years ago

Of course. First of all, you run the server from console.(It's server-windows-xxx.exe on master and npm start on old version). You should check your machine's ip by running "ipconfig" on another console, you should see something like "192.168.xx.xx" (which is IPv4 adress). Thats your server ip which you will enter on app.

While server is running, you can run the demo app on devices. Then you go to P2P call sample, enter the "192.168.xx.xx" on the dialog, then you connect. You will see yourself and other connected devices as list. You can screenshare or do a video call via those buttons. Let me know if you come across any issues. Good luck!

abheet-98 commented 4 years ago

@tavuskusu Thank you ! Now my server started running using the old branch . Capturedemoapp

But when I type the server ip on the demo app on 2 mobile devices the P2P call sample screen shows blank white screen with navbar "P2P call sample" image Thank you !

abheet-98 commented 4 years ago

@tavuskusu Is there any solution for this ? I'm stuck here.

@tavuskusu Thank you ! Now my server started running using the old branch . Capturedemoapp

But when I type the server ip on the demo app on 2 mobile devices the P2P call sample screen shows blank white screen with navbar "P2P call sample" image Thank you !