PIUS-KEYRING-MGR(1)
π pius-keyring-mgr β the NAME bit π
okay so bestie, meet pius-keyring-mgr β the PIUS (PGP Individual UID Signer) Keyring Manager π. That's the whole name, no cap. It's a General Commands Manual page, section 1, and it's here to help you wrangle keyrings like the main character you are π.
π¦ SYNOPSIS π¦
pius-keyring-mgr <mode> [options]
β¨ DESCRIPTION β¨
so pius-keyring-mgr has several modes for managing keyrings π
. It was originally designed for signing parties, but honestly? It works on any PGP keyring. It's giving versatile.
The one rule: the mode must be the first argument β like, first, bestie, before anything else β and then the options come after, as explained below β¬οΈ.
π OPTIONS π
-d,--debugβ turns on debugging output π so you can see what's actually going on.-g PATH,--gpg-path=PATHβ where your gpg binary lives π§. [default:/usr/bin/gpg2]-r KEYRING,--keyring=KEYRINGβ use this keyring, this one right here π.-v,--verboseβ prints summaries π. Yes, it's chatty, we love that for it.
π MODES π
π οΈ build
build mode is the one you'll use pretty much all the time. It can parse a CSV file π, automatically go looking for keys π, and email anyone whose key wasn't found π§. It can also import keys from an mbox file. The options are:
-b MBOX-FILE,--mbox-file=MBOX-FILEβ parsesMBOX-FILEand checks every single message for PGP fingerprints or ascii-armored keys π. It decodes messages as needed.-c CSV-FILE,--csv-file=CSV-FILEβ parsesMBOX-FILEand imports keys. (yes bestie, it really saysMBOX-FILEright there π β I'm just the messenger, I don't make the rules.) You will almost certainly also want-D,-E,-Fand-Nπ .-D DELIMITER,--delimiter=DELIMITERβ the field delimiter to use when parsing CSV. Only meaningful with-c. [default:',']-E EMAIL-COLUMN,--email-field=EMAIL-COLUMNβ which column number holds the email address in the CSV file π§. Only meaningful with-c. [default:3]-F FINGERPRINT-COLUMN,--fp-field=FINGERPRINT-COLUMNβ which column number holds the GPG fingerprint in the CSV file π. Only meaningful with-c. [default:4]-m FROM-EMAIL,--mail=FROM-EMAILβ emails the people whose keys were not located, usingFROM-EMAILas the sender π¨.-M FILE,--mail-text=FILEβ uses the text inFILEas the body of the email instead of the default text βοΈ. Wanna see the default text? Use--print-default-email. Requires-m.-N NAME-COLUMN,--name-field=NAME-COLUMNβ which column number holds the name in the CSV file π·οΈ. Only meaningful with-c. [default:2]-n TO-EMAIL,--override-email=TO-EMAILβ instead of sending to the actual user, send to this address π. Mostly useful for debugging.-p PARTY-NAME,--party=PARTY-NAMEβ the name of the party π. It gets printed in the email that goes out. Only useful with-m.-s KEY-SERVER,--keyservers=KEY-SERVERβ try this keyserver π. Specify it once for each server you want (-s foo -s bar). [default:pool.sks-keyservers.net,pgp.mit.edu,keys.gnupg.net]-t TEMP-DIR,--tmp-dir=TEMP-DIRβ the directory to dump temporary stuff in π. [default:/tmp/pius_keyring_mgr_tmp]-T,--print-default-emailβ prints the default email π¬.--ignore-emails=IGNORE-EMAILSβ a comma-separated list of emails to ignore (no spaces!) π«.--ignore-fingerprints=IGNORE-FINGERPRINTSβ a comma-separated list of PGP fingerprints to ignore (again, no spaces) π .
βοΈ prune
prune mode opens a keyring and, for each key, asks you whether to remove it ποΈ. Super useful after a party to trim out the people who didn't show up, before you hand the keyring out to the people who did β¨. There are no options. That's it. Simple. Iconic.
π§ͺ raw
raw mode passes options directly to gpg π«Ά. Great for adding keys by hand. Your options get added to the ones needed to safely work on the party keyring β and nope, it does not load your personal keyring π«. Your options must be passed after -- so that pius-keyring-manager doesn't try to interpret them as its own π.
πΈ EXAMPLES πΈ
Scan a CSV file and an MBOX for emails, then write to anyone whose key wasn't found, using you@company.com as the sender:
/usr/bin/pius-keyring-mgr build --csv-file /tmp/report --mbox-file /tmp/mbox --mail you@company.com
Download a key and add it to the party keyring:
pius-keyring-mgr raw -r path/to/keyring.gpg -- --recv-key <keyid>
π AUTHOR π
PIUS was written by Phil Dibowitz <phil@ipom.com> π.
This manual page was written by Felix Lechner <felix.lechner@gmail.com> for the Debian project, but may be used by others π«Ά. (Sharing is caring, bestie.)
okay that's the whole page!! πβ¨ this was PIUS-KEYRING-MGR(1) from the General Commands Manual, and the page itself is dated DECEMBER 2016 π . go forth and manage those keyrings, you absolute legend ππ periodt.
π¦ where this page comes from
- arch rolling: pius 3.0.0-9 Β· GPL
- debian bookworm: pius 3.0.0-5 Β· GPL-2.0-only
- debian trixie: pius 3.0.0-8 Β· GPL-2.0-only
- nixos 26.05: pius 3.0.0
- nixpkgs unstable: pius 3.0.0
- ubuntu jammy: pius 3.0.0-3 Β· GPL-2.0-only
- ubuntu noble: pius 3.0.0-7 Β· GPL-2.0-only
- ubuntu questing: pius 3.0.0-8
- ubuntu resolute: pius 3.0.0-8build1 Β· GPL-2.0-only
- ubuntu stonking: pius 3.0.0-8build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms