Set up server to use encrypted communications with the server