Node.js无法从电报bot websocket中获取数据

我正在尝试使用自签证书与nodejs https服务器build立一个电报机器人。

ssl证书:

openssl req -newkey rsa:2048 -sha256 -nodes -keyout key.pem -x509 -days 365 -out crt.pem -subj "/C=IR/ST=A.Sh/L=Tabriz/O=DominoSystem/CN=5.235.36.42" 

非常简单的服务器:

 var options = { key : fs.readFileSync(__dirname + '/key.pem'), cert: fs.readFileSync(__dirname + '/crt.pem') }; https.createServer(options, function (req, res) { console.log('https server'); console.log(req.url); res.end('yoo hooo'); }).listen(8443,'0.0.0.0'); 

服务器可通过Internet访问: https://5.235.36.42:8443/https://5.235.36.42:8443/ : https://5.235.36.42:8443/

Telegram bot setWebhook返回ok {"ok":true,"result":true,"description":"Webhook was set"}

我可以在我的filewall日志和DU计量表“ Open TCP Connections ”中看到nodejs.exe正在从一个电报的数据中心接收连接,并且始终具有ESTABLISHED状态,有时是SYN_RCVD ,然后用send&receive = 0KBclosures,但是我的nodejs服务器没有收到任何请求。

我允许我的防火墙(Comodo)接受端口8443上的所有传入连接。

我一直在抨击我的头2天:(可以有人帮我PLIZ …

Windows 8.1 x64,Nodejs 5.9.1

好的,我自己修好了,看来Telegram不喜欢windows(8.1)上的openssl生成的证书。

我在我的linux(CentOS6)服务器上生成证书,现在它工作:D,在服务器和本地开发机器。