Specify TLS hostname separately from connect hostname
the-sun-will-rise-tomorrow opened this issue · 2 comments
the-sun-will-rise-tomorrow commented
Hi,
Is it possible to specify the address to connect to separately from the address that is verified against the server's TLS certificate?
Like curl
's --resolve
or --connect-to
?
Thanks!
vi commented
There is --tls-domain
option for the case where you don't use convenient wss://
URL, but compose the stack manually using overlays.
websocat ... ws-c:tls:tcp:1.2.3.4:443 --tls-domain=check_tls_certificate_with_this.com --ws-c-uri=wss://whatever_goes_in_host_header.com/path
the-sun-will-rise-tomorrow commented
Ah, thank you! I missed the --help=long
hint!