    # File lib/chef/api_client.rb, line 262
        def reregister
          r = Chef::REST.new(Chef::Config[:chef_server_url])
          reregistered_self = r.put_rest("clients/#{name}", { :name => name, :admin => admin, :private_key => true })
          if reregistered_self.respond_to?(:[])
            private_key(reregistered_self["private_key"])
          else
            private_key(reregistered_self.private_key)
          end
          self
        end