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

Can't start encrypted websocket server #148

Open
JothamB opened this issue Mar 7, 2018 · 1 comment
Open

Can't start encrypted websocket server #148

JothamB opened this issue Mar 7, 2018 · 1 comment

Comments

@JothamB
Copy link

JothamB commented Mar 7, 2018

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
Copy link
Author

JothamB commented Mar 7, 2018

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 !

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

1 participant