Skip to content

CXCDC-44199 Fix SNI mismatch when using HTTPS proxy CONNECT tunnel - #42

Open
estira wants to merge 1 commit into
mainfrom
bug/CXCDC-44199-fix-sni-proxy-tunnel
Open

CXCDC-44199 Fix SNI mismatch when using HTTPS proxy CONNECT tunnel#42
estira wants to merge 1 commit into
mainfrom
bug/CXCDC-44199-fix-sni-proxy-tunnel

Conversation

@estira

@estira estira commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

When routing through an HTTPS proxy, self.host holds the proxy address and self._tunnel_host holds the real destination. Using self.host as SNI causes SSLV3_ALERT_HANDSHAKE_FAILURE on servers that enforce strict SNI validation (Zero Trust gateways, CloudFront). Fall back to self.host only when no tunnel is active (direct connections are unaffected).

When routing through an HTTPS proxy, self.host holds the proxy address
and self._tunnel_host holds the real destination. Using self.host as SNI
causes SSLV3_ALERT_HANDSHAKE_FAILURE on servers that enforce strict SNI
validation (Zero Trust gateways, CloudFront). Fall back to self.host only
when no tunnel is active (direct connections are unaffected).
@estira
estira requested a review from shemma3 August 9, 2026 11:40
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.

2 participants