Skip to content

Commit 9793485

Browse files
committed
fix: use native root certificates for OIDC discovery
Switch reqwest from `rustls-tls` (embedded webpki/Mozilla roots only) to `rustls-tls-native-roots` so the HTTP client reads system certificates and honors the SSL_CERT_FILE environment variable. This is required on OpenShift where the Keycloak route uses the cluster's ingress CA which is not in the Mozilla root store. Aligns with tokio-tungstenite which already uses rustls-tls-native-roots. Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: Paolo Dettori <dettori@us.ibm.com>
1 parent 906f399 commit 9793485

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ serde_yml = "0.0.12"
7272
apollo-parser = "0.8.5"
7373

7474
# HTTP client
75-
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
75+
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls-native-roots"] }
7676

7777
# WebSocket
7878
tokio-tungstenite = { version = "0.26", features = ["rustls-tls-native-roots"] }

0 commit comments

Comments
 (0)