error:0A00010B:SSL while trying to connect local websocket server

181 views Asked by At

I run a very basic websocket server. Just a copy-paste from https://http4s.org/v1/docs/service.html#running-your-service-as-an-app

I tried to connect with the websocket server using Postman, curl, wscat... but everything give the same result. I will post the results from wscat:

wscat -c "wss://localhost:8080/hello/name"
error: write EPROTO C0F7A4FA377F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:


wscat -c "ws://localhost:8080/hello/name"
error: Unexpected server response: 200

Later I put also withoutTls for EmberServerBuilder, but it changes nothing.

I run everything on Pop!_OS (ubuntu like).

openssl s_client -connect host.com:443 -tls1_3 shows that OS runs tls 1.3. I don't know where to search. OS config? Websocket server config? Websocket client (postman, wscat) config?

0

There are 0 answers