Chef Error


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


About spuder
spuder is a "super computer" support engineer by day, and tinkerer / hobbyist by night.

One Response to Chef Error

  1. You’ve saved couple hours of my life, thanks mate 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: