Skip to content

Conversation

@fabian4
Copy link

@fabian4 fabian4 commented Jan 17, 2026

This PR fixes the rustls connector to honor per-peer CA configuration when establishing upstream TLS connections. Fixes #792.

The change wires Peer::get_ca() into rustls by constructing a per-peer RootCertStore when provided, using it consistently for both ClientConfig root certificates and WebPkiServerVerifier, with a clean fallback to the global CA store when absent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

per-peer CA (peer.get_ca()) is ignored during certificate verification

1 participant