Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node js - SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:.Error [duplicate]

So I am using Statusdashboard (https://github.com/obazoud/statusdashboard), it is a simple tool to check whether a website is up or not (I know I can use Monit too, but I want to give Node JS a try that's why I am using this.)

This seems to work great when using 'http' in the settings file, but as soon as I try checking status of a website which uses 'https' protocol it gives out an error statement both on console and the dashboard - "SSL23_GET_SEVER_HELLO:unknown protocol". I figured it out that this has to do something with node HTTPS.

Just wondering if anyone has ever encountered this error before.

like image 246
TheZelus Avatar asked Oct 21 '22 22:10

TheZelus


1 Answers

Reason for the error is probably that you service only speaks SSLv3. Node HTTPS uses SSLv2 as default.

I faced the same problem and solved it following this hint

SSL Error in nodejs

Hope this helps

like image 62
Stephan Hoyer Avatar answered Oct 27 '22 10:10

Stephan Hoyer