wied03 / cookbook-gpg

GPG cookbook for Chef, LWRP focused
2 stars 8 forks source link

Can't import private key #4

Closed szechyjs closed 10 years ago

szechyjs commented 10 years ago

I recieve the following error when importing a private key.

---- Begin output of gpg2 --import ----
STDOUT:
STDERR: gpg: importing secret keys not allowed
gpg: Total number processed: 1
gpg:       secret keys read: 1
---- End output of gpg2 --import ----
Ran gpg2 --import returned 2

Looking at the gpg documentation I believe the command is missing the --allow-secret-key-import argument.

szechyjs commented 10 years ago

Turns out this is a problem with RHEL, gnupg2 is built with --enable-selinux-support which disables the import of secret keys.