The client needs to establish an encrypted channel for transmitting messages. What does it need to do?