Skip to content

HTTPProxy TLS #4537

Locked Answered by tsaarni
priyakr-git asked this question in Q&A
May 18, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

When connecting with curl https://localhost/ curl will set TLS SNI to hostname to localhost while Envoy is expecting https-example.foo.com. You can try curl --resolve https-example.foo.com:443:127.0.0.1 https:///https-example.foo.com to make curl use the correct hostname. I think this would remove also the need to explicitly set the Host header.

You probably know this but just for completeness: You also need to provide trusted CA certificatecurl --cacert trusted-ca.pem and the server certificate should be issued for the FQDN by having either CN=https-example.foo.com or Subject Alternative Name / SAN set as DNS:https-example.foo.com. Otherwise curl --insecure could be used as a temporary w…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@priyakr-git
Comment options

Answer selected by priyakr-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants