Chef: How to regenerate the validation key

Posted on 12 Nov 2014, By Diego Woitasen under Infrastructure as Code

Get Started

Today I’ve lost the Chef validation key of one the servers that we have around. I haven’t found how to recover it in a quick Google search, so… good reason to write this short post.

The validation “thing”, is a client (not an user) in Chef which has permission to register new Chef clients to the server. To regenerate you have to remove the client and create it again:

knife client delete --delete-validators org-validator
knife client create org-validator --validator -f file_roots/chef-client/files/chef-validator-linode.pem

Prepare Your Infrastructure for the Challenges Ahead

Your clients, investors and business partners will notice the difference, from now on, you can progress with confidence.

Get Started