[chef] Re: Re: struggling getting started


Chronological Thread 
  • From: Craig White < >
  • To:
  • Subject: [chef] Re: Re: struggling getting started
  • Date: Thu, 19 May 2011 14:21:29 -0700

I think so...

$ cat ~/chef-repo/.chef/knife.rb
current_dir = File.dirname(__FILE__)
log_level                :info
log_location             STDOUT
node_name                "white_n_az"
client_key               "#{current_dir}/white_n_az.pem"
validation_client_name   "tti-validator"
validation_key           "#{current_dir}/tti-validator.pem"
chef_server_url          "https://api.opscode.com/organizations/tti"
cache_type               'BasicFile'
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
cookbook_path            ["#{current_dir}/../cookbooks"]

The 2 'pem' files referenced in knife.rb are indeed in the same .chef directory and they both seem correct...

:~/chef-repo/.chef$ head -n 1 tti-validator.pem 
-----BEGIN RSA PRIVATE KEY-----
:~/chef-repo/.chef$ head -n 1 white_n_az.pem 
-----BEGIN RSA PUBLIC KEY-----
:~/chef-repo/.chef$ tail -n 1 tti-validator.pem 
-----END RSA PRIVATE KEY-----
:~/chef-repo/.chef$ tail -n 1 white_n_az.pem 
-----END RSA PUBLIC KEY-----


On Thu, May 19, 2011 at 2:10 PM, Edward Sargisson < "> > wrote:
RSA keys have a start line and and end line which looks something like
---------------------RSA PRIVATE KEY---------------

Did you, by any chance, remove these? If you look at the pem files do
they look okay? Are they correctly referenced in knife.rb?

Cheers,
Edward

On Thu, May 19, 2011 at 1:30 PM, Craig White < "> > wrote:
> Following the Quick Start guide (Ubuntu 10.04)
>
> $ knife client list
> ERROR: OpenSSL::PKey::RSAError: private key needed.: no start line
>
> $ ls -l /home/cwhite/chef-repo/.chef/
> total 20
> -rw-r--r-- 1 cwhite cwhite  526 2011-05-19 10:52 knife.rb
> -rw-r--r-- 1 cwhite cwhite  426 2011-05-19 10:30 tti.pem
> -rw-r--r-- 1 cwhite cwhite 1679 2011-05-19 10:30 tti-validator.pem
> drwxr-xr-x 2 cwhite cwhite 4096 2011-05-19 13:26 unused
> -rw-r--r-- 1 cwhite cwhite  426 2011-05-19 12:37 white_n_az.pem
>
> seems like it should work but I don't have a clue how to resolve this and Google wasn't of much use here.
>
> Anyone have a cluestick for this noob?
>
> --
> Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   ">
> 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com
>
> Need help communicating between generations at work to achieve your desired success? Let us help!
>
>




Archive powered by MHonArc 2.6.16.

§