Open bitphage opened 8 years ago
Thanks for picking up on this. I don't use Chef anymore but if I get some time I'll try and look at it. Some of this could probably be done better if it used the Ruby GPG wrapper as well.
The only Ruby GPG wrapper I could find is GPGME. GPGME doesn't work with custom keyrings. See https://bugs.g10code.com/gnupg/issue2820
I'd be willing to accept a PR for your referenced commit but the test kitchen tests need to be updated first.
OS: Ubuntu 16.04 gnupg2: 2.1.11-6ubuntu2
In gpg 2.1 parsing of secret keys has been removed:
So get_key_header() in libraries/helper_gpg_interface.rb produces empty result which causes an error:
Probably may be worked around using
gpg --list-packets