eliihen / wsta

A CLI development tool for WebSocket APIs
GNU General Public License v3.0
631 stars 19 forks source link

Support libressl #18

Open fentas opened 7 years ago

fentas commented 7 years ago

I try to use wsta within docker alpine. For that I installed libssl1.0 as it is required. But if I try to use it I get

wsta: /usr/lib/libssl.so.1.0.0: no version information available (required by wsta)
wsta: /usr/lib/libcrypto.so.1.0.0: no version information available (required by wsta)
wsta: Relink `/lib/libz.so.1' with `/usr/glibc-compat/lib/libc.so.6' for IFUNC symbol `memset'

Do you know any solution to this? Thanks.

eliihen commented 7 years ago

Doesn't alpine use libressl? Tried to make that work before, but to no avail, so it only supports openssl for now

eliihen commented 7 years ago

The libressl not working thing is mostly because rust-openssl didnt support it. It does now, but that was only introduced at version 0.9.4, and wsta currently uses 0.7.14.

Updating dependencies should therefore make it work for libressl. A lot of things have happened in the dependency world since then, however, and it will probably require a bit of work to make it happen.

fentas commented 7 years ago

I wouldn't know how to help you. I need a cli websocket utility which works with alpine. :/

Thanks for your effort.

eliihen commented 7 years ago

Try wscat. It should work if you have node installed. I guess you also could run wsta from a container

fentas commented 7 years ago

I compared a lot and there is no real contender for wsta right now. I switched to debian:jessie for now an wait in hope that wsta will work within alpine someday. :+1:

fentas commented 7 years ago

I had a look around again. Currently, I do something like this:

# Redirect stdout ( > ) into a named pipe ( >() )
exec > >(wsta -H "authorization: $(cat /run/secrets/authorization)" "${WSS}")

I can not do this with any other library.

eliihen commented 7 years ago

I'll get back to this eventually, right now I'm mostly focused on the RESTED project. I would merge a PR if anyone else would like to fix this in the mean time