rust-libp2p icon indicating copy to clipboard operation
rust-libp2p copied to clipboard

Rust Websocket_websys can not dial to tls/ws secure websocket (libp2p-go)

Open lat-murmeldjur opened this issue 8 months ago • 1 comments

Summary

While trying to dial a secure websocket underlay, I/O error broken pipeline occured at multi_stream upgrade Tried with yamux as well as mplex. Can not find any configuration options in connection with TLS client for websocket_websys.

Expected behavior

We need websocket_websys to be able to dial to wss endpoints.

Actual behavior

I/O error broken pipeline

Relevant log output


Possible Solution

No response

Version

Main branch latest

Would you like to work on fixing this bug?

Yes

lat-murmeldjur avatar Apr 06 '25 10:04 lat-murmeldjur

Further info: when trying to connect to wss from shared worker, it gives a more specific error "failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID" which might be because of the certificate on the other side is self-signed (for ip address). Accepting this - such as ws.WithTLSClientConfig(&tls.Config{InsecureSkipVerify: true}) in golang could solve the issue

lat-murmeldjur avatar Apr 07 '25 10:04 lat-murmeldjur