Hi,
I get this error when trying to auth knife
knife data bag from file gl_data_bag
~/workspace/Gold-Lantern-CHEF/chef-repo/data_bags/gl_data_bag/gl.json
-c /home/ubuntu/workspace/Gold-Lantern-CHEF/knife.rb
ERROR: Failed to authenticate to
https://api.opscode.com/organizations/ips1 as infiniteprofitsolutions
with key /home/ubuntu/workspace/Gold-Lantern-CHEF/infiniteprofitsolutions.pem
Response: Failed to authenticate as infiniteprofitsolutions. Ensure
that your node_name and client key are correct.
- I am using hosted chef
- I have the knife config in a given directory and I use the -c flag
- I regenerated the client and validator pem files per the docs
located at (http://wiki.opscode.com/display/chef/Managing+Organizations+with+the+Hosted+Chef+Management+Console#ManagingOrganizationswiththeHostedChefManagementConsole-RegeneratingthePrivateKeyandtheKnifeConfig)
and are in the directory where knife is located - Here are the contents of the directory infiniteprofitsolutions.pem
ips1-validator.pem knife.rb
Here is my knife file.
current_dir = File.dirname(FILE)
log_level :info
log_location STDOUT
node_name “infiniteprofitsolutions"
client_key
”/home/ubuntu/workspace/Gold-Lantern-CHEF/infiniteprofitsolutions.pem"
validation_client_name “ips1-validator"
validation_key
”/home/ubuntu/workspace/Gold-Lantern-CHEF/ips1-validator.pem"
chef_server_url “https://api.opscode.com/organizations/ips1"
cache_type ‘BasicFile’
#cache_options( :path => “#{ENV[‘HOME’]}/.chef/checksums” )
cookbook_path
[”/home/ubuntu/workspace/Gold-Lantern-CHEF/chef-repo/cookbooks"]
So…what is the issue?