em-websocket
em-websocket copied to clipboard
Can't start encrypted websocket server
Hello !
I'm trying to start an encrypted WebSocket server. I had called the method EM:WebSocket.run(:host => "0.0.0.0", :port => 8080, :secure => True, :tls_options => [.. My key and cert ..]) and got the following error message: "terminate called after throwing an instance of 'std::runtime_error' what(): Encryption not available on this event machine"
The key and cert are working fine with the Apache server. The WebSocket server is working fine without encryption. I installed libssl-div, uninstalled the gem, reinstalled the gem but it's still not working :( I'm trying to run the WebSocket server on a BackBox 5 virtual machine running on Ubuntu 16.04 host.
Any suggestions ?
Got it !
In the first place, I uninstalled the gem em-websocket. Then I figured I had to uninstall the gem eventmachine.
To get it working I uninstalled eventmachine, reinstalled it (with libssl-dev installed) and now it is working smoothly !