changes in the provisioner to use TLS when talking to the server

This needs openssl in require. Do not rely on it being included via rest_client, since we call OpenSSL methods, ourselves.