Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have public and private keyring files in my .gnupg directory (pubring.gpg and secring.gpg). I want to create a new keyring trustedkeys.gpg, also in .gnupg, to which I can add other people's public keys.

How do I create this new keyring?

share|improve this question
1  
The convention is to have all keys in your pubring. Trust is marked using GnuPG's own settings. –  grawity Mar 12 '12 at 22:19
    
gpgv expects signatures to be in trustedkeys.gpg. –  rlandster Mar 13 '12 at 3:57

2 Answers 2

gpg --export-keys KEY1 KEY2 > trustedkeys.gpg

Where you can supply (partial) fingerprints for KEY1, KEY2 etc. Just found this somewhere, I haven't tested it yet.

share|improve this answer
gpg --keyring pubring.gpg --export KEY > /tmp/exported.key
gpg --no-default-keyring --keyring=path/to/new-keyring.gpg --import /tmp/exported.key

If you want the keyring to also be used by GPG by default from then on, as you say, omit the --no-default-keyring switch.

Find more information in gpg(1) manual under --keyring option.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.