knife bootstrap windows winrm fails with Bad HTTP error

chef-client gets installed on the node but node doesn't get registered on the hosted chef account.