Closed maxpowel closed 4 months ago
Ah sorry, I tried to find any reference to this problem and I did not find it. Thank you
i changed my Cargo.toml and solved:
ring = { version = "0.17" }
rustls = { version = "0.23", features = ["ring","logging","tls12"], default-features = false }
tokio-tungstenite = { version = "0.23", features = ["rustls-tls-webpki-roots"] }
add this code to fixed:
rustls::crypto::ring::default_provider().install_default().expect("Failed to install rustls crypto provider");
Hello
When using rutls on versions > 0.22.0 this error is raised:
I investigated a bit about CryptoProvider::install_default() and it looks something related with latest changes rustls made in crypto part.
This line in my Cargo.toml works fine:
but this raises the error
The error appears as soon as you call
tokio_tungstenite::connect_async
Thank you