Using SSL when needed.