em-websocket icon indicating copy to clipboard operation
em-websocket copied to clipboard

Can't start encrypted websocket server

Open JothamB opened this issue 7 years ago • 1 comments

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 ?

JothamB avatar Mar 07 '18 21:03 JothamB

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 !

JothamB avatar Mar 07 '18 22:03 JothamB