ssl cleanup