COOPR-568: changes in the provisioner to use TLS when talking to the server

per rubocop, there should be spaces inside ``{`` and ``}``