lwsjs / local-web-server

A lean, modular web server for rapid full-stack development.
MIT License
1.21k stars 85 forks source link

Support secureProtocol and custom cipher list #64

Closed zerob4wl closed 7 years ago

75lb commented 7 years ago

useful feature, thanks - I will look at this today.

zerob4wl commented 7 years ago

+up

75lb commented 7 years ago

@zerob4wl could you tell me your use case for this feature please? Why would setting custom secureProtocol and cipher values be useful for you?

Thanks, it will help me understand the issue and ensure we release something that covers everyone's needs.

zerob4wl commented 7 years ago

The TLS has some version and some times you need to set it and force to use just a certain version. In my case, the client say the web server must use TLS v1.2 and one of certain Cipher.

75lb commented 7 years ago

These options have been implemented in local-web-server v2 (which is nearing completion). Please install the preview release:

$ npm install local-web-server@next

then run ws --help to see the options, which include --ciphers and --secure-protocol.

Let me know if this solves your issue.