Switch the TCP socket to SSL Socket.