Thanks, this seemed to solve the original issue. Using version 0.8.1,
though, I get the following:
[Wed, 25 May 2011 02:46:15 -0700] FATAL: Failed to read the private
key /etc/chef/client.pem:
...
[Wed, 25 May 2011 02:46:15 -0700] ERROR: execute[create wordpressdb
database] (/tmp/vagrant-chef/cookbooks-0/wordpress/recipes/default.rb:76:in from_file') had an error: I cannot read /etc/chef/client.pem, which you told me to use to sign requests! /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:62:in load_signing_key'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:33:in initialize' /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest.rb:48: stdout [default] /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:62:in load_signing_key': stderr
[default] : : stderr
[default] I cannot read /etc/chef/client.pem, which you told me to use
to sign requests!: stderr
[default] (: stderr
[default] Chef::Exceptions::PrivateKeyMissing: stderr
[default] )
: stderr
[default] from
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:33:in
`initialize'
: stderr
[default]
I'm a bit lost here, cause I'm using Chef Solo as provisioner and not
Chef Server. Could someone clarify me how this authentication is
supposed to work?
Thanks, this seemed to solve the original issue. Using version 0.8.1,
though, I get the following:
[Wed, 25 May 2011 02:46:15 -0700] FATAL: Failed to read the private
key /etc/chef/client.pem:
...
[Wed, 25 May 2011 02:46:15 -0700] ERROR: execute[create wordpressdb
database] (/tmp/vagrant-chef/cookbooks-0/wordpress/recipes/default.rb:76:in from_file') had an error: I cannot read /etc/chef/client.pem, which you told me to use to sign requests! /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:62:in load_signing_key'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:33:in initialize' /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest.rb:48: stdout [default] /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:62:in load_signing_key': stderr
[default] : : stderr
[default] I cannot read /etc/chef/client.pem, which you told me to use
to sign requests!: stderr
[default] (: stderr
[default] Chef::Exceptions::PrivateKeyMissing: stderr
[default] )
: stderr
[default] from
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/rest/auth_credentials.rb:33:in
`initialize'
: stderr
[default]
I'm a bit lost here, cause I'm using Chef Solo as provisioner and not
Chef Server. Could someone clarify me how this authentication is
supposed to work?