Handle SSL in the server