Made SSL requirement controllable by settings