January 28, 2013 1 Comment
You are setting up a chef server, but when you run a knife command like “knife client list”, you get the following error:
ERROR: OpenSSL::PKey::RSAError: private key needed.
Here are the things to check:
Do your validation.pem and client.pem have valid data?
They should include PRIVATE keys (not public keys)
They should include the words —–END RSA PRIVATE KEY—–
Check that you followed this step of the chef instructions
sudo cp /etc/chef/validation.pem /etc/chef/webui.pem ~/.chef