Added use of ssl sockets on clientnetwork