Reputation: 35
I'm going through chef server training under:
Learn Chef>Tutorials>Manage a node>Red Hat Enterprise Linux>Hosted Chef>Upload a cookbook to Chef server
The tutorial has just had me use
"knife cookbook upload learn_chef_httpd"
in the terminal but when I "knife cookbook list"
instead of verifying like the tutorial shows, it returns:
ERROR: Failed to authenticate to https://api.chef.io/organizations/utopiartstudios as wolf4091 with key /Users/gavindevops/learn-chef/.chef/utopiartstudios-validator.pem
Response: Invalid signature for user or client 'wolf4091'
I tried nano'ing into the knife.rb file to adjust the client key as it was originally the wrong file name, but it still won't work. I am at a loss. Sorry if this is noobie stuff.
Upvotes: 0
Views: 192
Reputation: 54181
It looks like you've mixed the user key and the validator key. In your .chef/knife.rb
(or .chef/config.rb
, same thing), you have a line like client_key
. That should be pointing at your user key, probably something like /Users/gavindevops/learn-chef/.chef/wolf4091.pem
or similar. So all together:
client_key '/Users/gavindevops/learn-chef/.chef/wolf4091.pem'
If you've got more questions, I recommend jumping on our community Slack team for more real-time help.
Upvotes: 1