I'm trying to share a GnuPG key pair by importing it into each machine. This is how I'm doing it:
gpg --allow-secret-key-import --import secret.gpg.key
gpg --import public.gpg.key
The keys have been exported with -a
.
After doing this, the public key is shown correctly when I do a gpg --list-keys
, but the private key isn't (gpg --list-secret-keys
).
What am I doing wrong?
By the way: I'm doing this with Puppet, so any solution that doesn't require me to type stuff in (--edit-key
and the like) would be appreciated.
gpg --list-secret-keys
output? There's no flag for GPG to mark a key to be default. It just picks the first one in that list to be the default. If you need to change that behaviour, I can provide an answer. – gertvdijk Aug 20 '13 at 12:18