Only use SSL when the scheme is https