Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALPN support #262

Open
gkc opened this issue Sep 18, 2024 · 2 comments
Open

ALPN support #262

gkc opened this issue Sep 18, 2024 · 2 comments

Comments

@gkc
Copy link

gkc commented Sep 18, 2024

websocat doesn't currently send any ALPN info as part of the TLS handshake ... Is there any work planned to support ALPN?

@vi
Copy link
Owner

vi commented Sep 18, 2024

Pending Websocat4 already includes setting ALPN values (though currently without a nice UI and by default it is not set).

What is your use case for ALPN mode? HTTP2 is not currently supported anyway.

Note that you can workaround missing support in Websocat1 by using external program as TLS connector:

$ websocat -t - --ws-c-uri=wss://ws.vi-server.org/mirror ws-c:cmd:'openssl s_client -alpn http/1.1  -connect ws.vi-server.org:443 -quiet'

depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = E5
verify return:1
depth=0 CN = ws.vi-server.org
verify return:1
sdf
sdf
adfadsfdsf
adfadsfdsf

@gkc
Copy link
Author

gkc commented Sep 19, 2024

That's very helpful @vi thank you!

My use case for ALPN is a service which wishes to handle communication via (a) http/1.1 upgrading to websocket (b) socket with a different protocol

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

No branches or pull requests

2 participants