ssl support modified with boolean switch