sous-chefs / certificate

Development repository for the certificate cookbook
https://supermarket.chef.io/cookbooks/certificate
73 stars 43 forks source link

"knife data bag show certificates test -Fj" doesn't work #32

Closed StaymanHou closed 10 years ago

StaymanHou commented 10 years ago

"knife data bag show certificates test -Fj" The command above doesn't work out for me. It complains "ERROR: Chef::EncryptedDataBagItem::DecryptionFailure: Error decrypting data bag value: 'bad decrypt'. Most likely the provided key is incorrect"

$ knife --version
Chef: 11.14.0.alpha.1
$ ruby -v
ruby 1.9.3p547 (2014-05-14 revision 45962) [x86_64-linux]
$ cat /etc/*-release
CentOS release 6.5 (Final)
$ uname -a
Linux my.domain.com 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
atomic-penguin commented 10 years ago

This can happen if the wrong key is hardcoded in your .chef/knife.rb

StaymanHou commented 10 years ago

Removing the knife[:secret_file] setting from my .chef/knife.rb resolves the issue. Thank you very much.