Skip to content

Verify the TLS endpoint of an HTTPS proxy against the proxy host - #918

Merged
arturobernalg merged 1 commit into
apache:masterfrom
arturobernalg:proxy-tls-endpoint-name
Nov 1, 2026
Merged

arturobernalg merged 1 commit into
apache:masterfrom
arturobernalg:proxy-tls-endpoint-name

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

With an HTTPS proxy the target name was passed as the endpoint name when connecting to the first hop, so the proxy certificate was verified against, and the SNI was set to, the target virtual host instead of the proxy. The target name is now used only when upgrading to TLS for the target.

Test added.

The target name was passed as the endpoint name when connecting to the
first hop, so the proxy certificate was verified against, and the SNI
set to, the target virtual host instead of the proxy. The target name is
now used only when upgrading to TLS for the target.
@arturobernalg
arturobernalg requested a review from ok2c November 1, 2026 09:17
@ok2c

ok2c commented Nov 1, 2026

Copy link
Copy Markdown
Member

@arturobernalg HttpClient does not really support https proxy connections, but the proposed change is reasonable.

@arturobernalg
arturobernalg merged commit 7c7ae93 into apache:master Nov 1, 2026
10 checks passed
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