Create an SSL socket for https connections.