Skip to content

Commit aefa735

Browse files
authored
fix(ext/tls): upgrade rustls to fix SSL cert validation regression (#33912)
- Upgrades `rustls` from 0.23.28 to 0.23.40 to fix a regression where `fetch()` fails on servers with certain SSL certificate configurations (ecdsa-with-SHA256 signature + secp384r1/P-384 key). - The root cause was that `rustls-webpki` 0.103.4+ (bumped in #33510) returns a new error variant (`UnsupportedSignatureAlgorithmForPublicKeyContext`) that `rustls` 0.23.28 didn't handle, breaking the algorithm fallback loop during TLS handshake. `rustls` 0.23.29+ handles this correctly. Fixes #33866
1 parent 06c1659 commit aefa735

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ regex = "^1.7.0"
284284
reqwest = { version = "=0.12.5", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli", "socks", "json", "http2"] } # pinned because of https://github.com/seanmonstar/reqwest/pull/1955
285285
rstest = "0"
286286
rusqlite = { version = "0.37.0", features = ["unlock_notify", "bundled", "session", "modern_sqlite", "limits", "backup"] } # "modern_sqlite": need sqlite >= 3.49.0 for some db configs
287-
rustls = { version = "=0.23.28", default-features = false, features = ["logging", "std", "tls12", "aws_lc_rs"] }
287+
rustls = { version = "=0.23.40", default-features = false, features = ["logging", "std", "tls12", "aws_lc_rs"] }
288288
rustls-pemfile = "2"
289289
rustls-tokio-stream = "=0.8.0"
290290
rustls-webpki = "0.102"

0 commit comments

Comments
 (0)