[[chef-dev]] Cannot authenticate knife commands on chef-server 0.8.6 on EC2


Chronological Thread 
  • From: Douglas Hubler < >
  • To:
  • Subject: [[chef-dev]] Cannot authenticate knife commands on chef-server 0.8.6 on EC2
  • Date: Tue, 9 Mar 2010 15:54:22 -0500

I'm trying to setup a chef server and I followed these instructions on
a fresh EC2 ubuntu system
  http://gist.github.com/242523

and i cannot get any knife commands to authenticate.  For example
   sudo /var/lib/gems/1.8/bin/knife data bag show BAG -u chef-webui -k
/etc/chef/webui.pem

yields this error
   /usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 401 "Unauthorized"
(Net::HTTPServerException)

and in the chef server log
  DEBUG: Authentication failed: Failed to authenticate user request.
Most likely missing a necessary header: padding check failed,
/var/lib/gems/1.8/gems/mixlib-authentication-1.1.0/lib/mixlib/authentication/signatureverification.rb:106:in
`public_decrypt'

My /etc/chef/server.rb has
  validation_client_name "validator"
  validation_key   "/etc/chef/validation.key"
  client_key       "/etc/chef/client.pem"
  web_ui_client_name "chef-webui"
  web_ui_key "/etc/chef/webui.pem"

I did check that /etc/chef/webui.pem contains webui.key + webui.crt.
What i don't know is where chef-server loads the public key.

I did read
 http://blog.ibd.com/scalable-deployment/creating-an-amazon-ami-for-chef-0-8/
but i don't see anything in there that's radically different than what
I've done.  I've tried this on two different fresh systems and same
problem persists

Any help would be greatly appreciated.



Archive powered by MHonArc 2.6.16.

§