簡體   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