Added ssl checking to Phantom.