gpg-sq(1)

πŸ“¦
version 0.13.1 Β· 4 versions
, in fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

okay bestie, welcome to gpg-sq(1), from the General Commands Manual πŸ’– this is the whole page, every flag, every file, no skips, no cap. buckle up, it's giving ✨cryptography✨ but make it cute.


🌸 NAME 🌸

gpg-sq β€” the OpenPGP encryption and signing tool that's basically gpg's cooler cousin πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

gpg-sq [-s|--sign] [--clear-sign] [-b|--detach-sign] [-e|--encrypt]
[-c|--symmetric] [-d|--decrypt] [--verify] [-k|--list-keys]
[--list-signatures] [--check-signatures] [--fingerprint]
[-K|--list-secret-keys] [--generate-key] [--quick-generate-key]
[--quick-add-uid] [--quick-revoke-uid] [--quick-set-expire]
[--full-generate-key] [--generate-revocation] [--delete-keys]
[--delete-secret-keys] [--quick-sign-key] [--quick-lsign-key]
[--quick-revoke-sig] [--sign-key] [--lsign-key] [--edit-key]
[--change-passphrase] [--export] [--send-keys] [--receive-keys]
[--search-keys] [--refresh-keys] [--import] [--update-trustdb]
[--print-md] [--server] [--tofu-policy] [--x-sequoia-parcimonie]
[-v|--verbose] [-q|--quiet] [--options] [--log-file] [--default-key]
[--encrypt-to] [--group] [--openpgp] [-n|--dry-run] [-i|--interactive]
[-a|--armor] [-o|--output] [--textmode] [-z ] [--auto-key-locate]
[--auto-key-import] [--include-key-block] [--disable-dirmngr]
[-r|--recipient] [-u|--local-user] [--x-sequoia-autostart-parcimonie]
[-h|--help] [-V|--version] [ARGS]

✨ DESCRIPTION ✨

so like, this whole thing is a re-implementation and drop-in replacement of gpg, built on the Sequoia OpenPGP implementation. iconic behavior honestly 🫢

but ngl, gpg-sq is not feature-complete. rn it does a commonly used subset of:

  • the signature creation and verification commands
  • the encryption and decryption commands
  • the key listing commands
  • and some miscellaneous commands

and the tea on trust models? support is limited. currently it's just the Web-of-Trust ("pgp") and always trust ("always") that are implemented. that's it, that's the list πŸ’€


πŸ’… OPTIONS πŸ’…

  • -h, --help β€” print help (see a summary with '-h')
  • -V, --version β€” print version
  • [ARGS] β€” additional arguments. the semantics of the additional arguments, and if there are any, and how many, all depends on which command you picked. so like, read the room (the command) first 🌸

πŸŽ€ COMMANDS πŸŽ€

  • -s, --sign β€” make a signature
  • --clear-sign β€” make a clear text signature
  • -b, --detach-sign β€” make a detached signature
  • -e, --encrypt β€” encrypt data
  • -c, --symmetric β€” encryption only with symmetric cipher
  • -d, --decrypt β€” decrypt data (default)
  • --verify β€” verify a signature
  • -k, --list-keys β€” list keys
  • --list-signatures β€” list keys and signatures
  • --check-signatures β€” list and check key signatures
  • --fingerprint β€” list keys and fingerprints
  • -K, --list-secret-keys β€” list secret keys
  • --generate-key β€” generate a new key pair
  • --quick-generate-key β€” quickly generate a new key pair
  • --quick-add-uid β€” quickly add a new user-id
  • --quick-revoke-uid β€” quickly revoke a user-id
  • --quick-set-expire β€” quickly set a new expiration date
  • --full-generate-key β€” full featured key pair generation
  • --generate-revocation β€” generate a revocation certificate
  • --delete-keys β€” remove keys from the public keyring
  • --delete-secret-keys β€” remove keys from the secret keyring
  • --quick-sign-key β€” quickly sign a key
  • --quick-lsign-key β€” quickly sign a key locally
  • --quick-revoke-sig β€” quickly revoke a key signature
  • --sign-key β€” sign a key
  • --lsign-key β€” sign a key locally
  • --edit-key β€” sign or edit a key
  • --change-passphrase β€” change a passphrase
  • --export β€” export keys
  • --send-keys β€” export keys to a keyserver
  • --receive-keys β€” import keys from a keyserver
  • --search-keys β€” search for keys on a keyserver
  • --refresh-keys β€” update all keys from a keyserver
  • --import β€” import/merge keys
  • --update-trustdb β€” update the trust database
  • --print-md β€” print message digests
  • --server β€” run in server mode
  • --tofu-policy <VALUE> β€” set the TOFU policy for a key

🌈 SEQUOIA-SPECIFIC EXTENSIONS 🌈

the lil extra sparkle sequoia brought to the function, we love to see it ⭐

  • --x-sequoia-parcimonie β€” continuously update certificates
  • --x-sequoia-autostart-parcimonie β€” automatically start daemon to update certs

πŸ” OPTIONS CONTROLLING THE DIAGNOSTIC OUTPUT πŸ”

  • -v, --verbose β€” verbose
  • -q, --quiet β€” be somewhat more quiet
  • --options <FILE> β€” read options from FILE
  • --log-file <FILE> β€” write server mode logs to FILE

βš™οΈ OPTIONS CONTROLLING THE CONFIGURATION βš™οΈ

  • --default-key <NAME> β€” use NAME as default secret key
  • --encrypt-to <NAME> β€” encrypt to user ID NAME as well
  • --group <SPEC> β€” set up email aliases
  • --openpgp β€” use strict OpenPGP behavior
  • -n, --dry-run β€” do not make any changes
  • -i, --interactive β€” prompt before overwriting

🎁 OPTIONS CONTROLLING THE OUTPUT 🎁

  • -a, --armor β€” create ascii armored output
  • -o, --output <FILE> β€” write output to FILE
  • --textmode β€” use canonical text mode
  • -z <N> β€” set compress level to N (0 disables)

πŸ“¦ OPTIONS CONTROLLING KEY IMPORT AND EXPORT πŸ“¦

  • --auto-key-locate <MECHANISMS> β€” use MECHANISMS to locate keys by mail address
  • --auto-key-import β€” import missing key from a signature
  • --include-key-block β€” include the public key in signatures
  • --disable-dirmngr β€” disable all access to the dirmngr

πŸ”‘ OPTIONS TO SPECIFY KEYS πŸ”‘

  • -r, --recipient <USER-ID> β€” encrypt for USER-ID
  • -u, --local-user <USER-ID> β€” use USER-ID to sign or decrypt

🌿 ENVIRONMENT 🌿

  • GNUPGHOME β€” if set, it must contain an absolute path to a directory holding the GnuPG state, aka the configuration files, the cert rings, the secret keys, and the trust database. it can be overridden using the the option --gnupghome. if it's unset, and the option --gnupghome isn't given either, it defaults to $HOME/.gnupg. and in the FILES section below, $GNUPGHOME means the location of the GnuPG state directory, no matter how it got set (i.e. unset, set via --gnupghome, or set via $GNUPGHOME). slay, consistent πŸ’…
  • SEQUOIA_CRYPTO_POLICY β€” if set, it must contain an absolute path to a configuration file that changes which cryptographic algorithms are acceptable. by default, /etc/crypto-policies/back-ends/sequoia.config is read, which on Fedora contains a reasonable policy set by the distribution. see https://docs.rs/sequoia-policy-config/latest/sequoia_policy_config/#format for a description of the file format.

πŸ—‚οΈ FILES πŸ—‚οΈ

  • $GNUPGHOME/gpg.conf β€” GnuPG's main configuration file.
  • $GNUPGHOME/dirmngr.conf β€” GnuPG's network configuration file. gpg-sq reads this and honors a subset of the options given.
  • $XDG_DATA_HOME/pgp.cert.d β€” default certificate store on POSIX systems if the default GNUPGHOME is used. this location is read and written to.
  • $HOME/Library/Application Support/pgp.cert.d β€” default certificate store on macOS if the default GNUPGHOME is used. this location is read and written to.
  • {FOLDERID_RoamingAppData}/pgp.cert.d β€” default certificate store on Windows if the default GNUPGHOME is used. this location is read and written to.
  • $GNUPGHOME/pubring.cert.d β€” certificate store if a non-default GNUPGHOME is used. this location is read and written to.
  • $GNUPGHOME/pubring.kbx β€” GnuPG's default certificate store. this file is read and monitored for changes, but never changed.
  • $GNUPGHOME/pubring.gpg β€” GnuPG's legacy certificate store. this file is read and monitored for changes, but never changed.
  • $GNUPGHOME/public-keys.d/pubring.db β€” GnuPG 2.4.x's certificate store. this file is read and monitored for changes, but never changed.
  • $GNUPGHOME/secring.gpg β€” GnuPG's legacy secret key store. gpg-sq does not use this file, except for doing a migration from pre-2.1 state directories.
  • $GNUPGHOME/.gpg-v21-migrated β€” indicates that the state directory has been migrated from a pre-2.1 release.
  • $GNUPGHOME/trustdb.gpg β€” GnuPG's trust database. this file is read and monitored for changes, but never modified.
  • /etc/crypto-policies/back-ends/sequoia.config β€” default cryptographic policy. on Fedora, this contains a reasonable policy set by the distribution. can be overridden using the SEQUOIA_POLICY_CONFIG environment variable. see https://docs.rs/sequoia-policy-config/latest/sequoia_policy_config/#format for a description of the file format.
bestie pls note: those "read and monitored but never changed" files are giving look but don't touch energy. gpg-sq is a respectful king πŸ‘‘

πŸ‘‘ VERSION πŸ‘‘

v0.13.1 β€” that's the one, that's the version, periodt πŸ’–


and that's the whole page, you ate it πŸ“ this was gpg-sq 0.13.1 from the gpg-sq(1) manual, mwah, go sign something, ily 🫢✨

πŸ“¦ where this page comes from