node.js 上的 starttls >0.4.0 [英] starttls on node.js > 0.4.0

查看:34
本文介绍了node.js 上的 starttls >0.4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了这个线程 Node.js HTTPS 安全错误,其中提到tls 模块是现在在节点上执行 TLS 的方法.似乎 setSecure() 已被删除.我正在尝试为 XMPP 做一个 STARTTLS.这意味着套接字将在中途升级.我如何在 node.js > 0.4.0 上执行此操作?

I came across this thread Node.js HTTPS Secure Error which mentions that the tls module is the way to do TLS on node now. It seems that setSecure() has been dropped. I'm trying to do a STARTTLS for XMPP. This means that the socket will be upgraded midway. How do I go about doing this on node.js > 0.4.0?

推荐答案

试试这个:https://gist.github.com/848444

这篇关于node.js 上的 starttls >0.4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆