![](/img/trans.png)
[英]SSL certs on node.js servers running websockets secure (WSS)
[英]Node.js and wss://
TLS / SSL支持适用于Node.js中的这个websocket实现,我刚测试它: https : //github.com/Worlize/WebSocket-Node/issues/29
你有stream.setSecure()和server.setSecure() 。
我猜你应该能够使用其中一个(特别是最后一个)在websockets中使用TLS,因为最后websocket只是一个普通的http连接“升级”到websocket。
在正常的http服务器对象中使用TLS理论上也应该保护websocket,只有通过测试才能确认。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.