{"id":15994148,"url":"https://github.com/robsdedude/rusttls-ring-vs-aws-issue","last_synced_at":"2025-10-21T03:30:39.943Z","repository":{"id":235131153,"uuid":"790119049","full_name":"robsdedude/rusttls-ring-vs-aws-issue","owner":"robsdedude","description":"Minimal reproducer","archived":true,"fork":false,"pushed_at":"2024-04-22T09:50:28.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T20:17:04.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robsdedude.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-22T09:49:59.000Z","updated_at":"2024-05-03T10:17:00.000Z","dependencies_parsed_at":"2024-04-22T11:09:05.450Z","dependency_job_id":null,"html_url":"https://github.com/robsdedude/rusttls-ring-vs-aws-issue","commit_stats":null,"previous_names":["robsdedude/rusttls-ring-vs-aws-issue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robsdedude%2Frusttls-ring-vs-aws-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robsdedude%2Frusttls-ring-vs-aws-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robsdedude%2Frusttls-ring-vs-aws-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robsdedude%2Frusttls-ring-vs-aws-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robsdedude","download_url":"https://codeload.github.com/robsdedude/rusttls-ring-vs-aws-issue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237429397,"owners_count":19308783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T07:06:30.758Z","updated_at":"2025-10-21T03:30:39.591Z","avatar_url":"https://github.com/robsdedude.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimal reproducer for rustls issue.\n\nParts of the code taken and adjusted from https://riptutorial.com/rust/example/4404/a-simple-tcp-client-and-server-application--echo\n\n## Setup\n\u003e **IMPORTANT**  \n\u003e Add `127.0.0.1     thehost` to you `/etc/hosts` file.\n\nLinux Mint 21\ngo version go1.18.1 linux/amd64\ncargo 1.77.2 (e52e36006 2024-03-26)\nrustc 1.77.2 (25ef9e3d8 2024-04-09)\n\n## Run\nIn terminal 1\n```bash\ngo run server.go\n```\n\nIn terminal 2\n```bash\n# works fine\nRING=y cargo run --bin client\n\n# fails\nRING=n cargo run --bin client\n```\n\n## Observations\n * I couldn't reproduce the issue with a rustls powered server.\n   Regardless of the `CryptoProvider` used.\n * The TLS version on the serverside had to be fixed to `1.2` for the failure to occur.\n\n### With `ring=y`\nOutput server:\n```bash\n$ go run server.go\nTLS, listening on 0.0.0.0:6666 with cert certs/server_thehost.pem\nTLS, client connected from 127.0.0.1:40086, waiting for Bolt handshake\nClient connected with correct Bolt handshake\n```\n\nOutput client (stripped log entries):\n```bash\n$ RING=y cargo run --bin client\n   Compiling rustls-test v0.1.0 (/home/rouven/seafile/code/rust-test)\n    Finished dev [unoptimized + debuginfo] target(s) in 1.75s\n     Running `target/debug/client`\nSuccessfully connected to server in port 6666\nSent Hello, awaiting reply...\nReply is ok!\nTerminated. \n```\n\n### With `ring=n`\nOutput server:\n```bash\n$ go run server.go\nTLS, listening on 0.0.0.0:6666 with cert certs/server_thehost.pem\nTLS, client connected from 127.0.0.1:35314, waiting for Bolt handshake\nFailed to receive Bolt handshake\nremote error: tls: error decrypting message\nexit status 255\n```\n\nOutput client (stripped log entries):\n```bash\n$ RING=n cargo run --bin client\n    Finished dev [unoptimized + debuginfo] target(s) in 0.03s\n     Running `target/debug/client`\nSuccessfully connected to server in port 6666\nthread 'main' panicked at src/bin/client.rs:59:35:\ncalled `Result::unwrap()` on an `Err` value: Custom { kind: InvalidData, error: InvalidCertificate(BadSignature) }\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobsdedude%2Frusttls-ring-vs-aws-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobsdedude%2Frusttls-ring-vs-aws-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobsdedude%2Frusttls-ring-vs-aws-issue/lists"}