Can't connect to simple server
ndavd opened this issue · 0 comments
ndavd commented
Since I'm using Rust to solve CryptoHack's challenges, I figured that I should also use Rust for those challenges that involve websockets (src: https://cryptohack.org/challenges/introduction).
Unfortunately, can't establish a simple connection to their server:
connect to socket.cryptohack.org on port 11112
Code:
fn main() {
let (mut socket, response) = tungstenite::connect("wss://socket.cryptohack.org:11112").unwrap();
}
I get the following error:
called `Result::unwrap()` on an `Err` value: Tls(Native(Ssl(Error { code: ErrorCode(1), cause: Some(Ssl(ErrorStack([Error { code: 167772358, library: "SSL routines", function: "tls_get_more_records", reason: "packet length too long", file: "ssl/record/methods/tls_common.c", line: 662 }, Error { code: 167772473, library: "SSL routines", function: "", reason: "record layer failure", file: "ssl/record/rec_layer_s3.c", line: 687 }]))) }, X509VerifyResult { code: 0, error: "ok" })))