Fixed node to work properly with ssl flag