Naming fix for getting client name instead of node name for Chef api.
Added a fix for connecting to chef set up with https using a self signed certificate.