Skip to content

Adding native wss (SSL) support [feature] #88

Description

@gregoiregentil

Hello,

wsServer is very useful because it's very tiny and readable... On the opposite, libwebsockets (which is an amazing project) has 100k+ lines of code and patches so it has become unmanageable.

I need to get wss support (SSL).

  1. For information, I'm running wsServer first on a standard Linux server with Apache2. To support wss, you can just add those lines to the Apache2 configuration (and you could avoid stunnel):
<IfModule mod_ssl.c>
<VirtualHost _IP_:443>
        RewriteEngine on
        ProxyRequests Off
        ProxyPreserveHost on
        ProxyPass /ws ws://_SERVER_:8081
        ProxyPassReverse /ws ws://_SERVER_:8081
</VirtualHost>
</IfModule>
  1. I'm aware of stunnel.

  2. I need to get wss support in a second scenario which is extremely constrained and where getting stunnel is complicated. Would you consider adding SSL native support? Or could you point where the frames need to be encrypted / decrypted using openssl with a local certificate?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions