0
我正在查找有关如何使用WWS/SSL正确配置UWS的文档或示例。目前我只是在做:使用UWS和SSL的安装节点
this.server = new WebSocket.Server({
port: this.config.port,
verifyClient: this.authenticate.bind(this)
});
这显然只是绑定一个基本的套接字。我是否需要使用设置初始化单独的https并将其插入UWS选项?
如果这是否仍然充分利用UWS内部使用SSL?我不知道内在化结构如何看起来如此好奇。
最后一个问题,我可以用DH作为额外的密码?我能否做类似于设置Express服务器的功能?
this.api = express.createServer({
key: config.certs.key,
cert: config.certs.cert,
dhparam: config.certs.dh,
secureOptions: constants.SSL_OP_NO_SSLv3 | constants.SSL_OP_NO_SSLv2
});
this.api.use(helmet.hsts({
maxAge: 31536000000,
includeSubdomains: true,
force: true
}));
谢谢!