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.

@duke8253 duke8253 self-assigned this Jan 23, 2026
@duke8253 duke8253 added the bug Something isn't working label Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants