Optionally disable cert validation and rework server-mode loop