[chef] Re: Knife


Chronological Thread 
  • From: Andiabes < >
  • To: " " < >
  • Cc: " " < >
  • Subject: [chef] Re: Knife
  • Date: Wed, 3 Aug 2011 23:57:27 -0400

You need a client private key to authenticate your client...
You can use the webui.pem in /etc/chef or you'd have to create a client through the webui and save the private key that is reported when you first create the client. 
I'm guessing that your setup doesn't actually have a 
.chef/webui.pem

On Aug 3, 2011, at 8:15 PM, Brian Jakovich < "> > wrote:

I setup a chef server on my Centos 5.4 instance. Chef installed correctly and the web ui was up and running. I then created a user called knife and in the home directory of the knife user I created and in the home directory I made a .chef/ directory. I then did

knife configure -i

Entered in the information:

Please enter the chef server URL: [localhost:4000] 
Please enter a clientname for the new client: [root] knife
Please enter the existing admin clientname: [chef-webui] 
Please enter the location of the existing admin client's private key: [/etc/chef/webui.pem] .chef/webui.pem
Please enter the validation clientname: [chef-validator] 
Please enter the location of the validation key: [/etc/chef/validation.pem] .chef/validation.pem
Please enter the path to a chef repository (or leave blank): [route to my svn repository]
Creating initial API user.
I then ran 

$ knife client list

ERROR: Chef::Exceptions::InvalidPrivateKey: The file /home/knife/.chef/knife.pem does not contain a correctly formatted private key.
The key file should begin with '-----BEGIN RSA PRIVATE KEY-----' and end with '-----END RSA PRIVATE KEY-----'

I don't host my svn repo on Github so I don't have a RSA private key....

Any help would be appreciated



Archive powered by MHonArc 2.6.16.

§