How do I import a private key into GPG so that it becomes the default key?
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.
No comments:
Post a Comment