Writing to Collections can work with SSL
Convert rest of write-client to use http-client and handle SSL