繁体   English   中英

具有SSL的Azure辅助角色上的Node.js导致ERR_SSL_PROTOCOL_ERROR

[英]Node.js on Azure Worker Role w/ SSL results in ERR_SSL_PROTOCOL_ERROR

我有一个WorkerRole配置为通过csdef中的Runtime / EntryPoint / ProgramEntryPoint元素启动node.exe,并在端口443上为具有有效证书的https配置了HttpsIn EndPoint。 我还在运行时/环境中设置PORT环境变量,节点用它来监听传入的请求。

当我启动该服务(在本地开发结构或Azure中)并尝试命中该服务时,我收到以下错误:

SSL connection error
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.

我已经验证了服务启动时确实启动了node.exe,如果我在Compute Emulator中查找本地端口,通常是这样的:

http://localhost:444

我可以使用我的浏览器直接成功命中节点。 我还能够在未配置SSL时通过Azure命中节点。

我错过了什么? 谢谢!

问题是我在Node中启动Web服务器时使用的是http模块而不是https模块。 使用ssl证书启动https服务器后即可使用。

我正在遵循WebRole中的SSL w / Node指南,这需要与WorkerRole中的SSL w / Node不同的设置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM