You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering how to use websockify.rb with SSL.
Other implementations seem to require a path to the SSL certificate, however in websockify.rb there's no indication for this requirement, eventhough a comment in the file states WSS is supported?
When I try to use noVNC with the encrypt option enabled, I see this:
"Uncaught exception: undefined method []' for nil:NilClass 1: Trace: ./websocket.rb:363:indo_handshake'"
Would it be a good idea to use em-websocket [https://github.com/igrigorik/em-websocket] with noVNC?
The text was updated successfully, but these errors were encountered:
Contrary to the comment at the top of the ruby implementation (which I corrected just now), encryption support is not yet implemented in websockify.rb.
If you would like to add SSL support to the existing version or create an Ruby implementation of websockify that uses em-websocket I would probably pull it in. I won't have time in the near future to work on this myself.
I tried adding SSL support to the current version, it works fine until handshake and sending protocol version. But then it breaks on "Uncaught exception: undefined method ^' for "\xFF":String" "websocket.rb:134:inblock in unmask'""
The diff of the changes I made to websocket.rb is available on https://gist.github.com/3172407
I replaced GServer with OpenSSL::SSL::SSLServer.
If you have any idea how I might be able to fix that error, then I think it'd work great. I could then clean up the diff :) and send a patch.
I was wondering how to use websockify.rb with SSL.
Other implementations seem to require a path to the SSL certificate, however in websockify.rb there's no indication for this requirement, eventhough a comment in the file states WSS is supported?
When I try to use noVNC with the encrypt option enabled, I see this:
"Uncaught exception: undefined method
[]' for nil:NilClass 1: Trace: ./websocket.rb:363:in
do_handshake'"Would it be a good idea to use em-websocket [https://github.com/igrigorik/em-websocket] with noVNC?
The text was updated successfully, but these errors were encountered: