Implement preliminary https connection