Use ssl if requested