Linux.pl
Opcje wyszukiwania podręcznika man:
Lista stron man zaczynających się od znaku:
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   ALPHA   NUM   OTHER   ALL
GPG(1)                       GNU Privacy Guard 2.2                      GPG(1)

NAME
       gpg - OpenPGP encryption and signing tool

SYNOPSIS
       gpg [--homedir dir] [--options file] [options] command [args]

DESCRIPTION
       gpg  is the OpenPGP part of the GNU Privacy Guard (GnuPG). It is a tool
       to provide digital encryption and signing services  using  the  OpenPGP
       standard.  gpg  features  complete key management and all the bells and
       whistles you would expect from a full OpenPGP implementation.

       There are two main versions of GnuPG: GnuPG 1.x and GnuPG  2.x.   GnuPG
       2.x  supports modern encryption algorithms and thus should be preferred
       over GnuPG 1.x.  You only need  to  use  GnuPG  1.x  if  your  platform
       doesn't  support  GnuPG 2.x, or you need support for some features that
       GnuPG 2.x has deprecated, e.g.,  decrypting  data  created  with  PGP-2
       keys.

       If  you  are  looking for version 1 of GnuPG, you may find that version
       installed under the name gpg1.

RETURN VALUE
       The program returns 0 if there are no severe errors, 1 if  at  least  a
       signature was bad, and other error codes for fatal errors.

       Note  that  signature verification requires exact knowledge of what has
       been signed and by whom it has beensigned.  Using only the return  code
       is  thus not an appropriate way to verify a signature by a script.  Ei-
       ther make proper use or the status codes or use the gpgv tool which has
       been designed to make signature verification easy for scripts.

WARNINGS
       Use  a good password for your user account and make sure that all secu-
       rity issues are always fixed on your  machine.   Also  employ  diligent
       physical protection to your machine.  Consider to use a good passphrase
       as a last resort protection to your secret key in the case your machine
       gets  stolen.   It  is  important that your secret key is never leaked.
       Using an easy to carry around token or smartcard with the secret key is
       often a advisable.

       If you are going to verify detached signatures, make sure that the pro-
       gram knows about it; either give both filenames on the command line  or
       use '-' to specify STDIN.

       For  scripted  or  other unattended use of gpg make sure to use the ma-
       chine-parseable interface and not the default interface  which  is  in-
       tended  for direct use by humans.  The machine-parseable interface pro-
       vides a stable and well documented API independent of the locale or fu-
       ture  changes of gpg.  To enable this interface use the options --with-
       colons and --status-fd.  For certain operations the option --command-fd
       may  come  handy too.  See this man page and the file 'DETAILS' for the
       specification of the interface.  Note that the GnuPG ``info'' pages  as
       well as the PDF version of the GnuPG manual features a chapter on unat-
       tended use of GnuPG.  As an alternative the library GPGME can  be  used
       as a high-level abstraction on top of that interface.

INTEROPERABILITY
       GnuPG  tries  to be a very flexible implementation of the OpenPGP stan-
       dard. In particular, GnuPG implements many of the optional parts of the
       standard,  such as the SHA-512 hash, and the ZLIB and BZIP2 compression
       algorithms. It is important to be aware that not all  OpenPGP  programs
       implement  these  optional algorithms and that by forcing their use via
       the --cipher-algo, --digest-algo,  --cert-digest-algo,  or  --compress-
       algo  options  in  GnuPG,  it  is  possible to create a perfectly valid
       OpenPGP message, but one that cannot be read by the intended recipient.

       There are dozens of variations of OpenPGP programs available, and  each
       supports a slightly different subset of these optional algorithms.  For
       example, until recently, no (unhacked) version  of  PGP  supported  the
       BLOWFISH cipher algorithm. A message using BLOWFISH simply could not be
       read by a PGP user. By default, GnuPG uses the standard OpenPGP prefer-
       ences  system  that  will always do the right thing and create messages
       that are usable by all recipients, regardless of which OpenPGP  program
       they  use.  Only override this safe default if you really know what you
       are doing.

       If you absolutely must override the safe default, or if the preferences
       on  a given key are invalid for some reason, you are far better off us-
       ing the --pgp6, --pgp7, or --pgp8 options. These options  are  safe  as
       they  do  not  force any particular algorithms in violation of OpenPGP,
       but rather reduce the available algorithms to a "PGP-safe" list.

COMMANDS
       Commands are not distinguished from options except for  the  fact  that
       only  one  command  is allowed.  Generally speaking, irrelevant options
       are silently ignored, and may not be checked for correctness.

       gpg may be run with no commands. In this case it will print  a  warning
       perform  a  reasonable action depending on the type of file it is given
       as input (an encrypted message is decrypted, a signature is verified, a
       file containing keys is listed, etc.).

       If  you  run  into any problems, please add the option --verbose to the
       invocation to see more diagnostics.

   Commands not specific to the function

       --version
              Print the program version and licensing information.  Note  that
              you cannot abbreviate this command.

       --help
       -h     Print  a  usage message summarizing the most useful command-line
              options.  Note that you cannot arbitrarily abbreviate this  com-
              mand (though you can use its short form -h).

       --warranty
              Print warranty information.

       --dump-options
              Print  a  list of all available options and commands.  Note that
              you cannot abbreviate this command.

   Commands to select the type of operation

       --sign
       -s     Sign a message. This command may be combined with --encrypt  (to
              sign  and encrypt a message), --symmetric (to sign and symmetri-
              cally encrypt a message), or both --encrypt and --symmetric  (to
              sign  and encrypt a message that can be decrypted using a secret
              key or a passphrase).  The signing key is chosen by  default  or
              can  be  set explicitly using the --local-user and --default-key
              options.

       --clear-sign
       --clearsign
              Make a cleartext signature.  The content in a  cleartext  signa-
              ture  is readable without any special software. OpenPGP software
              is only needed to verify the  signature.   cleartext  signatures
              may  modify end-of-line whitespace for platform independence and
              are not intended to be reversible.  The signing key is chosen by
              default  or  can  be  set  explicitly using the --local-user and
              --default-key options.

       --detach-sign
       -b     Make a detached signature.

       --encrypt
       -e     Encrypt data to one or more public keys.  This  command  may  be
              combined  with --sign (to sign and encrypt a message), --symmet-
              ric (to encrypt a message that can be decrypted using  a  secret
              key  or a passphrase), or --sign and --symmetric together (for a
              signed message that can be decrypted using a  secret  key  or  a
              passphrase).  --recipient and related options specify which pub-
              lic keys to use for encryption.

       --symmetric
       -c     Encrypt with a symmetric cipher using a passphrase. The  default
              symmetric  cipher  used  is  AES-128, but may be chosen with the
              --cipher-algo option. This command may be combined  with  --sign
              (for  a  signed  and symmetrically encrypted message), --encrypt
              (for a message that may be decrypted  via  a  secret  key  or  a
              passphrase), or --sign and --encrypt together (for a signed mes-
              sage that may be decrypted via a secret key  or  a  passphrase).
              gpg  caches the passphrase used for symmetric encryption so that
              a decrypt operation may not require that the user needs to enter
              the  passphrase.   The  option  --no-symkey-cache can be used to
              disable this feature.

       --store
              Store only (make a simple literal data packet).

       --decrypt
       -d     Decrypt the file given on the command line (or STDIN if no  file
              is specified) and write it to STDOUT (or the file specified with
              --output). If the decrypted file is  signed,  the  signature  is
              also  verified. This command differs from the default operation,
              as it never writes to the filename which is included in the file
              and it rejects files that don't begin with an encrypted message.

       --verify
              Assume  that  the  first argument is a signed file and verify it
              without generating any output.  With no arguments, the signature
              packet  is  read from STDIN.  If only one argument is given, the
              specified file is expected to include a complete signature.

              With more than one argument, the first argument should specify a
              file  with  a  detached signature and the remaining files should
              contain the signed data. To read the signed data from STDIN, use
              '-'  as  the  second filename.  For security reasons, a detached
              signature will not read the signed material from  STDIN  if  not
              explicitly specified.

              Note:  If  the option --batch is not used, gpg may assume that a
              single argument is a file with a detached signature, and it will
              try  to find a matching data file by stripping certain suffixes.
              Using this historical feature to verify a detached signature  is
              strongly  discouraged;  you  should always specify the data file
              explicitly.

              Note: When verifying a cleartext signature,  gpg  verifies  only
              what  makes  up the cleartext signed data and not any extra data
              outside of the cleartext signature or the header lines  directly
              following the dash marker line.  The option --output may be used
              to write out the actual signed data, but there  are  other  pit-
              falls with this format as well.  It is suggested to avoid clear-
              text signatures in favor of detached signatures.

              Note: Sometimes the use of the gpgv tool is  easier  than  using
              the full-fledged gpg with this option.  gpgv is designed to com-
              pare signed data against a list of trusted keys and returns with
              success only for a good signature.  It has its own manual page.

       --multifile
              This  modifies  certain  other commands to accept multiple files
              for processing on the command line or read from STDIN with  each
              filename  on  a  separate line. This allows for many files to be
              processed at once. --multifile may currently be used along  with
              --verify, --encrypt, and --decrypt. Note that --multifile --ver-
              ify may not be used with detached signatures.

       --verify-files
              Identical to --multifile --verify.

       --encrypt-files
              Identical to --multifile --encrypt.

       --decrypt-files
              Identical to --multifile --decrypt.

       --list-keys
       -k
       --list-public-keys
              List the specified keys.  If no keys  are  specified,  then  all
              keys from the configured public keyrings are listed.

              Never  use  the  output of this command in scripts or other pro-
              grams.  The output is intended only for humans and its format is
              likely  to change.  The --with-colons option emits the output in
              a stable, machine-parseable format, which is intended for use by
              scripts and other programs.

       --list-secret-keys
       -K     List  the specified secret keys.  If no keys are specified, then
              all known secret keys are listed.  A # after  the  initial  tags
              sec  or ssb means that the secret key or subkey is currently not
              usable.  We also say that this key has been taken  offline  (for
              example, a primary key can be taken offline by exporting the key
              using the command --export-secret-subkeys).   A  >  after  these
              tags  indicate  that the key is stored on a smartcard.  See also
              --list-keys.

       --check-signatures
       --check-sigs
              Same as --list-keys, but the key  signatures  are  verified  and
              listed  too.   Note  that for performance reasons the revocation
              status of a signing key is not shown.  This command has the same
              effect as using --list-keys with --with-sig-check.

              The  status  of the verification is indicated by a flag directly
              following the "sig" tag (and thus before the flags described be-
              low.   A  "!" indicates that the signature has been successfully
              verified, a "-" denotes a bad signature and a "%" is used if  an
              error  occurred  while  checking  the signature (e.g. a non sup-
              ported algorithm).  Signatures  where  the  public  key  is  not
              available  are  not  listed;  to  see  their  keyids the command
              --list-sigs can be used.

              For each signature listed, there are several  flags  in  between
              the  signature  status  flag  and keyid.  These flags give addi-
              tional information about  each  key  signature.   From  left  to
              right, they are the numbers 1-3 for certificate check level (see
              --ask-cert-level), "L" for a local or  non-exportable  signature
              (see  --lsign-key),  "R"  for  a nonRevocable signature (see the
              --edit-key command "nrsign"), "P" for a signature that  contains
              a  policy  URL (see --cert-policy-url), "N" for a signature that
              contains a notation (see --cert-notation), "X"  for  an  eXpired
              signature  (see  --ask-cert-expire),  and the numbers 1-9 or "T"
              for 10 and above to indicate trust  signature  levels  (see  the
              --edit-key command "tsign").

       --locate-keys
       --locate-external-keys
              Locate the keys given as arguments.  This command basically uses
              the same algorithm as used when locating keys for encryption and
              may  thus be used to see what keys gpg might use.  In particular
              external methods as defined by --auto-key-locate are used to lo-
              cate  a  key if the arguments comain valid mail addresses.  Only
              public keys are listed.

              The variant --locate-external-keys does not consider  a  locally
              existing  key and can thus be used to force the refresh of a key
              via the defined external methods.  If a fingerprint is given and
              and   the  methods  defined  by  --auto-key-locate  define  LDAP
              servers, the key is fetched from these resources;  defined  non-
              LDAP keyservers are skipped.

       --show-keys
              This commands takes OpenPGP keys as input and prints information
              about them in the same way the command --list-keys does for  lo-
              cally  stored  key.  In addition the list options show-unusable-
              uids, show-unusable-subkeys, show-notations and show-policy-urls
              are  also enabled.  As usual for automated processing, this com-
              mand should be combined with the option --with-colons.

       --fingerprint
              List all keys (or the specified ones) along with  their  finger-
              prints.  This is the same output as --list-keys but with the ad-
              ditional output of a line with the fingerprint. May also be com-
              bined  with --check-signatures.  If this command is given twice,
              the fingerprints of all secondary keys  are  listed  too.   This
              command also forces pretty printing of fingerprints if the keyid
              format has been set to "none".

       --list-packets
              List only the sequence of packets.  This command is only  useful
              for  debugging.   When used with option --verbose the actual MPI
              values are dumped and not only their  lengths.   Note  that  the
              output of this command may change with new releases.

       --edit-card
       --card-edit
              Present  a  menu to work with a smartcard. The subcommand "help"
              provides an overview on available commands. For a  detailed  de-
              scription,  please see the Card HOWTO at https://gnupg.org/docu-
              mentation/howtos.html#GnuPG-cardHOWTO .

       --card-status
              Show the content of the smart card.

       --change-pin
              Present a menu to allow changing the PIN of  a  smartcard.  This
              functionality  is also available as the subcommand "passwd" with
              the --edit-card command.

       --delete-keys name
              Remove key from the public keyring. In batch mode  either  --yes
              is required or the key must be specified by fingerprint. This is
              a safeguard against accidental deletion of  multiple  keys.   If
              the  exclamation  mark  syntax is used with the fingerprint of a
              subkey only that subkey is deleted; if the exclamation  mark  is
              used  with  the fingerprint of the primary key the entire public
              key is deleted.

       --delete-secret-keys name
              Remove key from the secret keyring. In batch mode the  key  must
              be  specified  by  fingerprint.  The option --yes can be used to
              advise gpg-agent not to request a confirmation.  This extra pre-
              caution  is  done  because gpg can't be sure that the secret key
              (as controlled by gpg-agent) is only used for the given  OpenPGP
              public  key.   If  the  exclamation mark syntax is used with the
              fingerprint of a subkey only the secret part of that  subkey  is
              deleted; if the exclamation mark is used with the fingerprint of
              the primary key only the secret  part  of  the  primary  key  is
              deleted.

       --delete-secret-and-public-key name
              Same as --delete-key, but if a secret key exists, it will be re-
              moved first. In batch mode the key must be specified by  finger-
              print.   The option --yes can be used to advise gpg-agent not to
              request a confirmation.

       --export
              Either export all keys from all keyrings  (default  keyring  and
              those  registered via option --keyring), or if at least one name
              is given, those of the given name. The exported keys are written
              to  STDOUT  or  to the file given with option --output.  Use to-
              gether with --armor to mail those keys.

       --send-keys keyIDs
              Similar to --export but sends the keys to a keyserver.   Finger-
              prints may be used instead of key IDs.  Don't send your complete
              keyring to a keyserver --- select only those keys which are  new
              or changed by you.  If no keyIDs are given, gpg does nothing.

              Take  care: Keyservers are by design write only systems and thus
              it is not possible to ever delete keys once they have been  send
              to a keyserver.

       --export-secret-keys
       --export-secret-subkeys
              Same  as --export, but exports the secret keys instead.  The ex-
              ported keys are written to STDOUT or to the file given with  op-
              tion --output.  This command is often used along with the option
              --armor to allow for easy printing of the key for paper  backup;
              however the external tool paperkey does a better job of creating
              backups on paper.  Note that exporting a secret key can be a se-
              curity risk if the exported keys are sent over an insecure chan-
              nel.

              The second form of the command has the special property to  ren-
              der  the  secret  part of the primary key useless; this is a GNU
              extension to OpenPGP and other implementations can  not  be  ex-
              pected  to  successfully import such a key.  Its intended use is
              in generating a full key with an additional signing subkey on  a
              dedicated  machine.   This  command then exports the key without
              the primary key to the main machine.

              GnuPG may ask you to enter the passphrase for the key.  This  is
              required,  because  the internal protection method of the secret
              key is different from the one specified by the OpenPGP protocol.

       --export-ssh-key
              This command is used to export a key in the OpenSSH  public  key
              format.   It  requires the specification of one key by the usual
              means and exports the latest valid subkey which has an authenti-
              cation  capability  to  STDOUT  or to the file given with option
              --output.  That output can directly be added  to  ssh's  'autho-
              rized_key' file.

              By  specifying the key to export using a key ID or a fingerprint
              suffixed with an exclamation mark (!), a specific subkey or  the
              primary  key  can  be exported.  This does not even require that
              the key has the authentication capability flag set.

       --import
       --fast-import
              Import/merge keys. This adds the given keys to the keyring.  The
              fast version is currently just a synonym.

              There  are  a  few  other options which control how this command
              works.  Most notable here is the --import-options merge-only op-
              tion which does not insert new keys but does only the merging of
              new signatures, user-IDs and subkeys.

       --receive-keys keyIDs
       --recv-keys keyIDs
              Import the keys with the given keyIDs from a keyserver.

       --refresh-keys
              Request updates from a keyserver for keys that already exist  on
              the  local  keyring.  This is useful for updating a key with the
              latest signatures, user IDs, etc. Calling this with no arguments
              will refresh the entire keyring.

       --search-keys names
              Search  the  keyserver for the given names. Multiple names given
              here will be joined together to create the search string for the
              keyserver.  Note that keyservers search for names in a different
              and simpler way than gpg does.  The best choice is to use a mail
              address.   Due  to  data privacy reasons keyservers may even not
              even allow searching by user id or mail  address  and  thus  may
              only  return results when being used with the --recv-key command
              to search by key fingerprint or keyid.

       --fetch-keys URIs
              Retrieve keys located at the specified URIs. Note that different
              installations  of  GnuPG  may support different protocols (HTTP,
              FTP, LDAP, etc.).  When using HTTPS  the  system  provided  root
              certificates are used by this command.

       --update-trustdb
              Do  trust  database  maintenance. This command iterates over all
              keys and builds the Web of Trust. This is an interactive command
              because it may have to ask for the "ownertrust" values for keys.
              The user has to give an estimation of how  far  she  trusts  the
              owner  of  the  displayed  key to correctly certify (sign) other
              keys. GnuPG only asks for the ownertrust value if it has not yet
              been  assigned to a key. Using the --edit-key menu, the assigned
              value can be changed at any time.

       --check-trustdb
              Do trust database maintenance  without  user  interaction.  From
              time  to time the trust database must be updated so that expired
              keys or signatures and the resulting changes in the Web of Trust
              can  be tracked. Normally, GnuPG will calculate when this is re-
              quired and do it automatically unless --no-auto-check-trustdb is
              set. This command can be used to force a trust database check at
              any time. The processing  is  identical  to  that  of  --update-
              trustdb but it skips keys with a not yet defined "ownertrust".

              For  use  with cron jobs, this command can be used together with
              --batch in which case the trust database check is done only if a
              check  is  needed. To force a run even in batch mode add the op-
              tion --yes.

       --export-ownertrust
              Send the ownertrust values to STDOUT. This is useful for  backup
              purposes  as  these  values are the only ones which can't be re-
              created from a corrupted trustdb.  Example:
                  gpg --export-ownertrust > otrust.txt

       --import-ownertrust
              Update the trustdb with the ownertrust values  stored  in  files
              (or  STDIN  if  not given); existing values will be overwritten.
              In case of a severely damaged trustdb and if you have  a  recent
              backup of the ownertrust values (e.g. in the file 'otrust.txt'),
              you may re-create the trustdb using these commands:
                  cd ~/.gnupg
                  rm trustdb.gpg
                  gpg --import-ownertrust < otrust.txt

       --rebuild-keydb-caches
              When updating from version 1.0.6 to 1.0.7 this command should be
              used  to  create  signature  caches  in the keyring. It might be
              handy in other situations too.

       --print-md algo
       --print-mds
              Print message digest of algorithm algo for all  given  files  or
              STDIN.   With the second form (or a deprecated "*" for algo) di-
              gests for all available algorithms are printed.

       --gen-random 0|1|2 count
              Emit count random bytes of the given quality level 0, 1 or 2. If
              count  is not given or zero, an endless sequence of random bytes
              will be emitted.  If used with --armor the output will be base64
              encoded.   PLEASE,  don't  use this command unless you know what
              you are doing; it may remove precious entropy from the system!

       --gen-prime mode bits
              Use the source, Luke :-). The output format is subject to change
              with ant release.

       --enarmor
       --dearmor
              Pack or unpack an arbitrary input into/from an OpenPGP ASCII ar-
              mor.  This is a GnuPG extension to OpenPGP and  in  general  not
              very useful.

       --tofu-policy {auto|good|unknown|bad|ask} keys
              Set  the  TOFU  policy  for all the bindings associated with the
              specified keys.  For more information about the meaning  of  the
              policies,  see:  [trust-model-tofu].   The keys may be specified
              either by their fingerprint (preferred) or their keyid.

   How to manage your keys

       This section explains the main commands for key management.

       --quick-generate-key user-id [algo [usage [expire]]]
       --quick-gen-key
              This is a simple command to generate a  standard  key  with  one
              user id.  In contrast to --generate-key the key is generated di-
              rectly without the need to answer a bunch  of  prompts.   Unless
              the  option --yes is given, the key creation will be canceled if
              the given user id already exists in the keyring.

              If invoked directly on the console without any  special  options
              an  answer  to  a ``Continue?'' style confirmation prompt is re-
              quired.  In case the user id already exists  in  the  keyring  a
              second prompt to force the creation of the key will show up.

              If  algo or usage are given, only the primary key is created and
              no prompts are shown.  To specify an expiration date  but  still
              create  a  primary  and  subkey  use ``default'' or ``future-de-
              fault'' for algo and ``default'' for usage.  For  a  description
              of  these  optional  arguments  see the command --quick-add-key.
              The usage accepts also the value ``cert'' which can be  used  to
              create  a  certification  only  primary key; the default is to a
              create certification and signing key.

              The expire argument can be used to specify  an  expiration  date
              for  the  key.   Several formats are supported; commonly the ISO
              formats ``YYYY-MM-DD'' or ``YYYYMMDDThhmmss'' are used.  To make
              the  key  expire  in  N seconds, N days, N weeks, N months, or N
              years use ``seconds=N'', ``Nd'', ``Nw'', ``Nm'', or  ``Ny''  re-
              spectively.  Not specifying a value, or using ``-'' results in a
              key expiring in  a  reasonable  default  interval.   The  values
              ``never'', ``none'' can be used for no expiration date.

              If  this  command is used with --batch, --pinentry-mode has been
              set  to  loopback,   and   one   of   the   passphrase   options
              (--passphrase,  --passphrase-fd,  or --passphrase-file) is used,
              the supplied passphrase is used for the new key  and  the  agent
              does  not  ask  for  it.  To create a key without any protection
              --passphrase '' may be used.

              To create an OpenPGP key from the keys  available  on  the  cur-
              rently  inserted  smartcard,  the special string ``card'' can be
              used for algo.  If the card features an encryption and a signing
              key,  gpg  will  figure them out and creates an OpenPGP key con-
              sisting of the usual primary key and  one  subkey.   This  works
              only with certain smartcards.  Note that the interactive --full-
              gen-key command allows to do the same but with greater flexibil-
              ity in the selection of the smartcard keys.

              Note  that  it  is possible to create a primary key and a subkey
              using non-default algorithms by using ``default''  and  changing
              the default parameters using the option --default-new-key-algo.

       --quick-set-expire fpr expire [*|subfprs]
              With  two  arguments  given, directly set the expiration time of
              the primary key identified by fpr to expire.  To remove the  ex-
              piration time 0 can be used.  With three arguments and the third
              given as an asterisk, the expiration time of all non-revoked and
              not  yet  expired subkeys are set to expire.  With more than two
              arguments and a list of fingerprints given for subfprs, all non-
              revoked subkeys matching these fingerprints are set to expire.

       --quick-add-key fpr [algo [usage [expire]]]
              Directly  add  a subkey to the key identified by the fingerprint
              fpr.  Without the optional arguments  an  encryption  subkey  is
              added.  If any of the arguments are given a more specific subkey
              is added.

              algo may be any of the supported algorithms or curve names given
              in the format as used by key listings.  To use the default algo-
              rithm the string ``default'' or ``-'' can  be  used.   Supported
              algorithms   are   ``rsa'',   ``dsa'',   ``elg'',   ``ed25519'',
              ``cv25519'', and other  ECC  curves.   For  example  the  string
              ``rsa''  adds  an  RSA key with the default key length; a string
              ``rsa4096'' requests that the key  length  is  4096  bits.   The
              string  ``future-default''  is  an alias for the algorithm which
              will likely be used as default algorithm in future  versions  of
              gpg.   To  list the supported ECC curves the command gpg --with-
              colons --list-config curve can be used.

              Depending on the given algo the subkey may either be an  encryp-
              tion  subkey or a signing subkey.  If an algorithm is capable of
              signing and encryption and such a subkey  is  desired,  a  usage
              string  must  be  given.   This  string is either ``default'' or
              ``-'' to keep the default or a comma delimited  list  (or  space
              delimited  list)  of  keywords:  ``sign''  for a signing subkey,
              ``auth'' for an authentication subkey, and ``encr'' for  an  en-
              cryption subkey (``encrypt'' can be used as alias for ``encr'').
              The valid combinations depend on the algorithm.

              The expire argument can be used to specify  an  expiration  date
              for  the  key.   Several formats are supported; commonly the ISO
              formats ``YYYY-MM-DD'' or ``YYYYMMDDThhmmss'' are used.  To make
              the  key  expire  in  N seconds, N days, N weeks, N months, or N
              years use ``seconds=N'', ``Nd'', ``Nw'', ``Nm'', or  ``Ny''  re-
              spectively.  Not specifying a value, or using ``-'' results in a
              key expiring in  a  reasonable  default  interval.   The  values
              ``never'', ``none'' can be used for no expiration date.

       --generate-key
       --gen-key
              Generate  a  new  key pair using the current default parameters.
              This is the standard command to create a new key.   In  addition
              to the key a revocation certificate is created and stored in the
              'openpgp-revocs.d' directory below the GnuPG home directory.

       --full-generate-key
       --full-gen-key
              Generate a new key pair with dialogs for all options.   This  is
              an extended version of --generate-key.

              There is also a feature which allows you to create keys in batch
              mode. See the manual section ``Unattended  key  generation''  on
              how to use this.

       --generate-revocation name
       --gen-revoke name
              Generate a revocation certificate for the complete key.  To only
              revoke a subkey or a key signature, use the --edit command.

              This command merely creates the revocation certificate  so  that
              it can be used to revoke the key if that is ever needed.  To ac-
              tually revoke a key the created revocation certificate needs  to
              be merged with the key to revoke.  This is done by importing the
              revocation certificate using the --import command.  Then the re-
              voked  key  needs to be published, which is best done by sending
              the key to a keyserver (command  --send-key)  and  by  exporting
              (--export)  it to a file which is then send to frequent communi-
              cation partners.

       --generate-designated-revocation name
       --desig-revoke name
              Generate a designated revocation certificate for a key. This al-
              lows  a  user  (with  the permission of the keyholder) to revoke
              someone else's key.

       --edit-key
              Present a menu which enables you to do most of the  key  manage-
              ment  related  tasks.   It expects the specification of a key on
              the command line.

              uid n  Toggle selection of user ID or photographic user ID  with
                     index n.  Use * to select all and 0 to deselect all.

              key n  Toggle selection of subkey with index n or key ID n.  Use
                     * to select all and 0 to deselect all.

              sign   Make a signature on key of user name. If the key  is  not
                     yet  signed  by the default user (or the users given with
                     -u), the program displays  the  information  of  the  key
                     again,  together with its fingerprint and asks whether it
                     should be signed. This question is repeated for all users
                     specified with -u.

              lsign  Same  as  "sign"  but  the signature is marked as non-ex-
                     portable and will therefore never be used by others. This
                     may be used to make keys valid only in the local environ-
                     ment.

              nrsign Same as "sign" but the signature is marked as non-revoca-
                     ble and can therefore never be revoked.

              tsign  Make a trust signature. This is a signature that combines
                     the notions of certification (like a regular  signature),
                     and  trust  (like  the  "trust" command). It is generally
                     only useful in distinct communities or groups.  For  more
                     information  please read the sections ``Trust Signature''
                     and ``Regular Expression'' in RFC-4880.

              Note that "l" (for local / non-exportable), "nr" (for  non-revo-
              cable,  and  "t" (for trust) may be freely mixed and prefixed to
              "sign" to create a signature of any type desired.

       If the option --only-sign-text-ids  is  specified,  then  any  non-text
       based user ids (e.g., photo IDs) will not be selected for signing.

              delsig Delete  a  signature. Note that it is not possible to re-
                     tract a signature, once it has been send  to  the  public
                     (i.e.  to  a  keyserver).   In  that  case you better use
                     revsig.

              revsig Revoke a signature. For every signature  which  has  been
                     generated by one of the secret keys, GnuPG asks whether a
                     revocation certificate should be generated.

              check  Check the signatures on all selected user IDs.  With  the
                     extra option selfsig only self-signatures are shown.

              adduid Create an additional user ID.

              addphoto
                     Create  a  photographic  user  ID. This will prompt for a
                     JPEG file that will be embedded into the  user  ID.  Note
                     that  a  very  large JPEG will make for a very large key.
                     Also note that some programs will display your  JPEG  un-
                     changed  (GnuPG),  and some programs will scale it to fit
                     in a dialog box (PGP).

              showphoto
                     Display the selected photographic user ID.

              deluid Delete a user ID or photographic user ID.  Note  that  it
                     is  not  possible  to retract a user id, once it has been
                     send to the public (i.e. to a keyserver).  In  that  case
                     you better use revuid.

              revuid Revoke a user ID or photographic user ID.

              primary
                     Flag  the current user id as the primary one, removes the
                     primary user id flag from all other user ids and sets the
                     timestamp  of  all  affected  self-signatures  one second
                     ahead. Note that setting a photo user ID as primary makes
                     it primary over other photo user IDs, and setting a regu-
                     lar user ID as primary makes it primary over other  regu-
                     lar user IDs.

              keyserver
                     Set  a  preferred keyserver for the specified user ID(s).
                     This allows other users to know where you prefer they get
                     your  key  from. See --keyserver-options honor-keyserver-
                     url for more on how  this  works.   Setting  a  value  of
                     "none" removes an existing preferred keyserver.

              notation
                     Set  a  name=value notation for the specified user ID(s).
                     See --cert-notation for more on how this works. Setting a
                     value of "none" removes all notations, setting a notation
                     prefixed with a minus sign (-) removes that notation, and
                     setting  a  notation  name  (without the =value) prefixed
                     with a minus sign removes all notations with that name.

              pref   List preferences from the selected user  ID.  This  shows
                     the  actual  preferences,  without  including any implied
                     preferences.

              showpref
                     More verbose preferences listing for  the  selected  user
                     ID. This shows the preferences in effect by including the
                     implied preferences of 3DES (cipher), SHA-1 (digest), and
                     Uncompressed  (compression)  if  they are not already in-
                     cluded in the preference list. In addition, the preferred
                     keyserver and signature notations (if any) are shown.

              setpref string
                     Set the list of user ID preferences to string for all (or
                     just the selected) user IDs. Calling setpref with no  ar-
                     guments  sets  the preference list to the default (either
                     built-in or set via --default-preference-list), and call-
                     ing  setpref  with  "none"  as the argument sets an empty
                     preference list. Use gpg  --version  to  get  a  list  of
                     available  algorithms. Note that while you can change the
                     preferences on an attribute user  ID  (aka  "photo  ID"),
                     GnuPG  does  not  select  keys  via attribute user IDs so
                     these preferences will not be used by GnuPG.

                     When setting preferences, you should list the  algorithms
                     in the order which you'd like to see them used by someone
                     else when encrypting a message to your key.  If you don't
                     include  3DES, it will be automatically added at the end.
                     Note that there are many factors that go into choosing an
                     algorithm  (for example, your key may not be the only re-
                     cipient), and so the  remote  OpenPGP  application  being
                     used to send to you may or may not follow your exact cho-
                     sen order for a given message.  It  will,  however,  only
                     choose  an  algorithm  that  is present on the preference
                     list of every recipient key.  See also the INTEROPERABIL-
                     ITY WITH OTHER OPENPGP PROGRAMS section below.

              addkey Add a subkey to this key.

              addcardkey
                     Generate a subkey on a card and add it to this key.

              keytocard
                     Transfer  the  selected secret subkey (or the primary key
                     if no subkey has been selected) to a smartcard.  The  se-
                     cret key in the keyring will be replaced by a stub if the
                     key could be stored successfully on the card and you  use
                     the  save  command  later.  Only certain key types may be
                     transferred to the card. A sub menu allows you to  select
                     on what card to store the key. Note that it is not possi-
                     ble to get that key back from the card - if the card gets
                     broken  your  secret  key  will be lost unless you have a
                     backup somewhere.

              bkuptocard file
                     Restore the given file to a card.  This  command  may  be
                     used  to  restore  a backup key (as generated during card
                     initialization) to a new card. In almost all  cases  this
                     will  be  the encryption key. You should use this command
                     only with the corresponding public key and make sure that
                     the  file  given  as argument is indeed the backup to re-
                     store. You should then select 2 to restore as  encryption
                     key.   You will first be asked to enter the passphrase of
                     the backup key and then for the Admin PIN of the card.

              delkey Remove a subkey (secondary key). Note that it is not pos-
                     sible  to  retract a subkey, once it has been send to the
                     public (i.e. to a keyserver).  In that  case  you  better
                     use  revkey.  Also note that this only deletes the public
                     part of a key.

              revkey Revoke a subkey.

              expire Change the key or subkey expiration time. If a subkey  is
                     selected,  the  expiration  time  of  this subkey will be
                     changed. With no selection, the  key  expiration  of  the
                     primary key is changed.

              trust  Change  the  owner  trust value for the key. This updates
                     the trust-db immediately and no save is required.

              disable
              enable Disable or enable an entire key. A disabled key  can  not
                     normally be used for encryption.

              addrevoker
                     Add  a  designated revoker to the key. This takes one op-
                     tional argument: "sensitive". If a designated revoker  is
                     marked  as  sensitive, it will not be exported by default
                     (see export-options).

              passwd Change the passphrase of the secret key.

              toggle This is dummy command which exists only for backward com-
                     patibility.

              clean  Compact  (by  removing all signatures except the selfsig)
                     any user ID that is no longer usable  (e.g.  revoked,  or
                     expired). Then, remove any signatures that are not usable
                     by the trust calculations.   Specifically,  this  removes
                     any  signature that does not validate, any signature that
                     is superseded by a later signature,  revoked  signatures,
                     and signatures issued by keys that are not present on the
                     keyring.

              minimize
                     Make the key as small as possible. This removes all  sig-
                     natures  from  each  user  ID  except for the most recent
                     self-signature.

              change-usage
                     Change the usage flags (capabilities) of the primary  key
                     or  of  subkeys.   These usage flags (e.g. Certify, Sign,
                     Authenticate,  Encrypt)  are  set  during  key  creation.
                     Sometimes  it is useful to have the opportunity to change
                     them (for example to add Authenticate)  after  they  have
                     been  created.  Please take care when doing this; the al-
                     lowed usage flags depend on the key algorithm.

              cross-certify
                     Add cross-certification  signatures  to  signing  subkeys
                     that  may  not  currently  have them. Cross-certification
                     signatures protect against a subtle attack against  sign-
                     ing  subkeys. See --require-cross-certification.  All new
                     keys generated have this signature by  default,  so  this
                     command is only useful to bring older keys up to date.

              save   Save all changes to the keyring and quit.

              quit   Quit the program without updating the keyring.

              The  listing  shows  you the key with its secondary keys and all
              user IDs.  The primary user ID is indicated by a  dot,  and  se-
              lected keys or user IDs are indicated by an asterisk.  The trust
              value is displayed with the primary key: "trust" is the assigned
              owner  trust  and  "validity"  is the calculated validity of the
              key.  Validity values are also displayed for all user IDs.   For
              possible values of trust, see: [trust-values].

       --sign-key name
              Signs a public key with your secret key. This is a shortcut ver-
              sion of the subcommand "sign" from --edit.

       --lsign-key name
              Signs a public key with your secret key but marks it as  non-ex-
              portable.  This  is a shortcut version of the subcommand "lsign"
              from --edit-key.

       --quick-sign-key fpr [names]
       --quick-lsign-key fpr [names]
              Directly sign a key from the passphrase without any further user
              interaction.   The  fpr must be the verified primary fingerprint
              of a key in the local keyring. If no names are given, all useful
              user  ids  are  signed;  with given [names] only useful user ids
              matching one of theses names are signed.  By default,  or  if  a
              name  is prefixed with a '*', a case insensitive substring match
              is used.  If a name is prefixed with a '=' a case sensitive  ex-
              act match is done.

              The  command  --quick-lsign-key  marks the signatures as non-ex-
              portable.  If such a non-exportable signature already exists the
              --quick-sign-key  turns  it into a exportable signature.  If you
              need to update an existing signature,  for  example  to  add  or
              change  notation  data, you need to use the option --force-sign-
              key.

              This command uses reasonable defaults and thus does not  provide
              the  full  flexibility of the "sign" subcommand from --edit-key.
              Its intended use is to help unattended key signing by  utilizing
              a list of verified fingerprints.

       --quick-add-uid user-id new-user-id
              This command adds a new user id to an existing key.  In contrast
              to the interactive sub-command adduid  of  --edit-key  the  new-
              user-id  is  added verbatim with only leading and trailing white
              space removed, it is expected to be UTF-8 encoded, and no checks
              on its form are applied.

       --quick-revoke-uid user-id user-id-to-revoke
              This command revokes a user ID on an existing key.  It cannot be
              used to revoke the last user ID on key (some non-revoked user ID
              must  remain),  with  revocation  reason  ``User ID is no longer
              valid''.  If you want to specify a different revocation  reason,
              or  to  supply supplementary revocation text, you should use the
              interactive sub-command revuid of --edit-key.

       --quick-revoke-sig fpr signing-fpr [names]
              This command revokes the key signatures made by signing-fpr from
              the key specified by the fingerprint fpr.  With names given only
              the signatures on user ids of the key matching any of the  given
              names  are affected (see --quick-sign-key).  If a revocation al-
              ready exists a notice is printed instead of creating a new revo-
              cation; no error is returned in this case.  Note that key signa-
              ture revocations may be superseded by a newer key signature  and
              in turn again revoked.

       --quick-set-primary-uid user-id primary-user-id
              This  command sets or updates the primary user ID flag on an ex-
              isting key.  user-id specifies the key and  primary-user-id  the
              user ID which shall be flagged as the primary user ID.  The pri-
              mary user ID flag is removed from all other  user  ids  and  the
              timestamp  of  all  affected  self-signatures  is set one second
              ahead.

       --change-passphrase user-id
       --passwd user-id
              Change the passphrase of the secret key belonging  to  the  cer-
              tificate  specified as user-id.  This is a shortcut for the sub-
              command passwd of the edit key menu.  When using  together  with
              the   option   --dry-run  this  will  not  actually  change  the
              passphrase but check that the current passphrase is correct.

OPTIONS
       gpg features a bunch of options to control the exact behaviour  and  to
       change the default configuration.

       Long    options    can   be   put   in   an   options   file   (default
       "~/.gnupg/gpg.conf"). Short option names will not work -  for  example,
       "armor"  is  a  valid option for the options file, while "a" is not. Do
       not write the 2 dashes, but simply the name of the option and  any  re-
       quired  arguments. Lines with a hash ('#') as the first non-white-space
       character are ignored. Commands may be put in this file too,  but  that
       is  not generally useful as the command will execute automatically with
       every execution of gpg.

       Please remember that option parsing stops as soon as  a  non-option  is
       encountered,  you  can explicitly stop parsing by using the special op-
       tion --.

   How to change the configuration

       These options are used to change the configuration and most of them are
       usually found in the option file.

       --default-key name
              Use  name as the default key to sign with. If this option is not
              used, the default key is the  first  key  found  in  the  secret
              keyring.   Note  that  -u or --local-user overrides this option.
              This option may be given multiple times.  In this case, the last
              key for which a secret key is available is used.  If there is no
              secret key available for any of the specified values, GnuPG will
              not  emit an error message but continue as if this option wasn't
              given.

       --default-recipient name
              Use name as default recipient if option --recipient is not  used
              and don't ask if this is a valid one. name must be non-empty.

       --default-recipient-self
              Use  the  default key as default recipient if option --recipient
              is not used and don't ask if this is a valid  one.  The  default
              key is the first one from the secret keyring or the one set with
              --default-key.

       --no-default-recipient
              Reset --default-recipient and --default-recipient-self.   Should
              not be used in an option file.

       -v, --verbose
              Give  more information during processing. If used twice, the in-
              put data is listed in detail.

       --no-verbose
              Reset verbose level to 0.  Should not be used in an option file.

       -q, --quiet
              Try to be as quiet as possible.  Should not be used in an option
              file.

       --batch
       --no-batch
              Use  batch  mode.  Never ask, do not allow interactive commands.
              --no-batch disables this option.  Note that even with a filename
              given  on  the  command  line, gpg might still need to read from
              STDIN (in particular if gpg figures that the input is a detached
              signature  and no data file has been specified).  Thus if you do
              not want to feed data via STDIN, you  should  connect  STDIN  to
              '/dev/null'.

              It  is  highly recommended to use this option along with the op-
              tions --status-fd and --with-colons for any  unattended  use  of
              gpg.  Should not be used in an option file.

       --no-tty
              Make  sure that the TTY (terminal) is never used for any output.
              This option is needed in  some  cases  because  GnuPG  sometimes
              prints warnings to the TTY even if --batch is used.

       --yes  Assume "yes" on most questions.  Should not be used in an option
              file.

       --no   Assume "no" on most questions.  Should not be used in an  option
              file.

       --list-options parameters
              This  is  a  space  or comma delimited string that gives options
              used when listing keys and  signatures  (that  is,  --list-keys,
              --check-signatures,  --list-public-keys, --list-secret-keys, and
              the --edit-key functions).  Options can be prepended with a  no-
              (after  the  two  dashes) to give the opposite meaning.  The op-
              tions are:

              show-photos
                     Causes  --list-keys,  --check-signatures,  --list-public-
                     keys, and --list-secret-keys to display any photo IDs at-
                     tached to the key.  Defaults to  no.  See  also  --photo-
                     viewer.   Does  not work with --with-colons: see --attri-
                     bute-fd for the appropriate way to  get  photo  data  for
                     scripts and other frontends.

              show-usage
                     Show  usage information for keys and subkeys in the stan-
                     dard key listing.  This is a list of  letters  indicating
                     the  allowed  usage  for  a key (E=encryption, S=signing,
                     C=certification, A=authentication).  Defaults to yes.

              show-policy-urls
                     Show policy URLs  in  the   --check-signatures  listings.
                     Defaults to no.

              show-notations
              show-std-notations
              show-user-notations
                     Show  all, IETF standard, or user-defined signature nota-
                     tions in the --check-signatures listings. Defaults to no.

              show-keyserver-urls
                     Show any preferred keyserver URL  in  the  --check-signa-
                     tures listings. Defaults to no.

              show-uid-validity
                     Display  the  calculated  validity of user IDs during key
                     listings.  Defaults to yes.

              show-unusable-uids
                     Show revoked and expired user IDs in  key  listings.  De-
                     faults to no.

              show-unusable-subkeys
                     Show  revoked  and  expired  subkeys in key listings. De-
                     faults to no.

              show-keyring
                     Display the keyring name at the head of key  listings  to
                     show  which  keyring  a given key resides on. Defaults to
                     no.

              show-sig-expire
                     Show signature expiration dates (if any) during  --check-
                     signatures listings. Defaults to no.

              show-sig-subpackets
                     Include signature subpackets in the key listing. This op-
                     tion can take an optional argument list of the subpackets
                     to  list.  If no argument is passed, list all subpackets.
                     Defaults to no. This option is only meaningful when using
                     --with-colons along with --check-signatures.

              show-only-fpr-mbox
                     For  each  user-id  which  has a valid mail address print
                     only the fingerprint followed by the mail address.

       --verify-options parameters
              This is a space or comma delimited  string  that  gives  options
              used  when verifying signatures. Options can be prepended with a
              `no-' to give the opposite meaning. The options are:

              show-photos
                     Display any photo IDs present on the key that issued  the
                     signature.  Defaults to no. See also --photo-viewer.

              show-policy-urls
                     Show  policy  URLs  in  the signature being verified. De-
                     faults to yes.

              show-notations
              show-std-notations
              show-user-notations
                     Show all, IETF standard, or user-defined signature  nota-
                     tions  in  the signature being verified. Defaults to IETF
                     standard.

              show-keyserver-urls
                     Show any preferred keyserver URL in the  signature  being
                     verified.  Defaults to yes.

              show-uid-validity
                     Display  the  calculated  validity of the user IDs on the
                     key that issued the signature. Defaults to yes.

              show-unusable-uids
                     Show revoked and expired user IDs during signature  veri-
                     fication.  Defaults to no.

              show-primary-uid-only
                     Show  only the primary user ID during signature verifica-
                     tion.  That is all the AKA lines as well as photo Ids are
                     not shown with the signature verification status.

              pka-lookups
                     Enable  PKA lookups to verify sender addresses. Note that
                     PKA is based on DNS, and so enabling this option may dis-
                     close  information  on when and what signatures are veri-
                     fied or to whom data is encrypted. This is similar to the
                     "web bug" described for the --auto-key-retrieve option.

              pka-trust-increase
                     Raise  the  trust in a signature to full if the signature
                     passes PKA validation. This option is only meaningful  if
                     pka-lookups is set.

       --enable-large-rsa
       --disable-large-rsa
              With  --generate-key and --batch, enable the creation of RSA se-
              cret keys as large as 8192 bit.  Note: 8192 bit is more than  is
              generally recommended.  These large keys don't significantly im-
              prove security, but they are more expensive to  use,  and  their
              signatures  and  certifications are larger.  This option is only
              available if the binary was build with large-secmem support.

       --enable-dsa2
       --disable-dsa2
              Enable hash truncation for all DSA keys even for old DSA Keys up
              to  1024  bit.   This  is also the default with --openpgp.  Note
              that older versions of GnuPG also required this  flag  to  allow
              the generation of DSA larger than 1024 bit.

       --photo-viewer string
              This  is the command line that should be run to view a photo ID.
              "%i" will be expanded to a filename containing the  photo.  "%I"
              does  the  same,  except  the  file will not be deleted once the
              viewer exits.  Other flags are "%k" for the key ID, "%K" for the
              long  key  ID, "%f" for the key fingerprint, "%t" for the exten-
              sion of the image type (e.g. "jpg"), "%T" for the MIME  type  of
              the  image  (e.g.  "image/jpeg"),  "%v" for the single-character
              calculated validity of the image being viewed (e.g.  "f"),  "%V"
              for the calculated validity as a string (e.g.  "full"), "%U" for
              a base32 encoded hash of the user ID, and  "%%"  for  an  actual
              percent  sign.  If  neither %i or %I are present, then the photo
              will be supplied to the viewer on standard input.

              On Unix the default viewer is  xloadimage  -fork  -quiet  -title
              'KeyID  0x%k'  STDIN  with  a  fallback to display -title 'KeyID
              0x%k' %i and finally to xdg-open %i.  On  Windows  !ShellExecute
              400  %i  is used; here the command is a meta command to use that
              API call followed by a wait time in milliseconds which  is  used
              to  give the viewer time to read the temporary image file before
              gpg deletes it again.  Note that if your image viewer program is
              not secure, then executing it from gpg does not make it secure.

       --exec-path string
              Sets  a  list  of directories to search for photo viewers If not
              provided photo viewers use the PATH environment variable.

       --keyring file
              Add file to the current list of keyrings. If file begins with  a
              tilde and a slash, these are replaced by the $HOME directory. If
              the filename does not contain a slash, it is assumed  to  be  in
              the   GnuPG  home  directory  ("~/.gnupg"  unless  --homedir  or
              $GNUPGHOME is used).

              Note that this adds a keyring to the current list. If the intent
              is  to use the specified keyring alone, use --keyring along with
              --no-default-keyring.

              If the option --no-keyring has been used  no  keyrings  will  be
              used at all.

       --primary-keyring file
              This is a varian of --keyring and designates file as the primary
              public keyring. This means that newly imported keys  (via  --im-
              port or keyserver --recv-from) will go to this keyring.

       --secret-keyring file
              This  is  an  obsolete  option and ignored.  All secret keys are
              stored in the 'private-keys-v1.d' directory below the GnuPG home
              directory.

       --trustdb-name file
              Use  file  instead of the default trustdb. If file begins with a
              tilde and a slash, these are replaced by the $HOME directory. If
              the  filename  does  not contain a slash, it is assumed to be in
              the GnuPG home directory ('~/.gnupg' if --homedir or  $GNUPGHOME
              is not used).

       --homedir dir
              Set the name of the home directory to dir. If this option is not
              used, the home directory defaults to  '~/.gnupg'.   It  is  only
              recognized  when  given  on the command line.  It also overrides
              any home  directory  stated  through  the  environment  variable
              'GNUPGHOME' or (on Windows systems) by means of the Registry en-
              try HKCU\Software\GNU\GnuPG:HomeDir.

              On Windows systems it is possible to install GnuPG as a portable
              application.  In this case only this command line option is con-
              sidered, all other ways to set a home directory are ignored.

              To install GnuPG as a portable application under Windows, create
              an  empty  file named 'gpgconf.ctl' in the same directory as the
              tool 'gpgconf.exe'.  The root of the installation is  then  that
              directory;  or, if 'gpgconf.exe' has been installed directly be-
              low a directory named 'bin', its  parent  directory.   You  also
              need  to  make sure that the following directories exist and are
              writable:    'ROOT/home'    for    the    GnuPG     home     and
              'ROOT/var/cache/gnupg' for internal cache files.

       --display-charset name
              Set  the  name of the native character set. This is used to con-
              vert some informational strings like  user  IDs  to  the  proper
              UTF-8 encoding.  Note that this has nothing to do with the char-
              acter set of data to be encrypted or signed; GnuPG does not  re-
              code user-supplied data. If this option is not used, the default
              character set is determined from the current locale. A verbosity
              level of 3 shows the chosen set.  This option should not be used
              on Windows.  Valid values for name are:

              iso-8859-1
                     This is the Latin 1 set.

              iso-8859-2
                     The Latin 2 set.

              iso-8859-15
                     This is currently an alias for the Latin 1 set.

              koi8-r The usual Russian set (RFC-1489).

              utf-8  Bypass all translations and assume that the OS  uses  na-
                     tive UTF-8 encoding.

       --utf8-strings
       --no-utf8-strings
              Assume  that  command line arguments are given as UTF-8 strings.
              The default (--no-utf8-strings) is to assume that arguments  are
              encoded  in the character set as specified by --display-charset.
              These options affect all following arguments. Both  options  may
              be  used  multiple  times.  This option should not be used in an
              option file.

              This option has no effect on Windows.  There the  internal  used
              UTF-8  encoding is translated for console input and output.  The
              command line arguments are expected as Unicode and translated to
              UTF-8.   Thus  when calling this program from another, make sure
              to use the Unicode version of CreateProcess.

       --options file
              Read options from file and do not try to read them from the  de-
              fault  options  file in the homedir (see --homedir). This option
              is ignored if used in an options file.

       --no-options
              Shortcut for --options /dev/null. This option is detected before
              an  attempt to open an option file.  Using this option will also
              prevent the creation of a '~/.gnupg' homedir.

       -z n
       --compress-level n
       --bzip2-compress-level n
              Set compression level to n for the ZIP and ZLIB compression  al-
              gorithms. The default is to use the default compression level of
              zlib (normally 6). --bzip2-compress-level sets  the  compression
              level  for  the  BZIP2 compression algorithm (defaulting to 6 as
              well). This is a different option  from  --compress-level  since
              BZIP2  uses  a  significant amount of memory for each additional
              compression level.  -z sets both. A value of 0  for  n  disables
              compression.

       --bzip2-decompress-lowmem
              Use a different decompression method for BZIP2 compressed files.
              This alternate method uses a bit more than half the memory,  but
              also  runs  at  half the speed. This is useful under extreme low
              memory circumstances when the file was originally compressed  at
              a high --bzip2-compress-level.

       --mangle-dos-filenames
       --no-mangle-dos-filenames
              Older  version of Windows cannot handle filenames with more than
              one dot. --mangle-dos-filenames causes GnuPG to replace  (rather
              than  add  to) the extension of an output filename to avoid this
              problem. This option is off by default and has no effect on non-
              Windows platforms.

       --ask-cert-level
       --no-ask-cert-level
              When  making  a key signature, prompt for a certification level.
              If this option is not specified, the certification level used is
              set  via  --default-cert-level. See --default-cert-level for in-
              formation on the specific levels and how they  are  used.  --no-
              ask-cert-level disables this option. This option defaults to no.

       --default-cert-level n
              The default to use for the check level when signing a key.

              0  means  you  make  no particular claim as to how carefully you
              verified the key.

              1 means you believe the key is owned by the person who claims to
              own it but you could not, or did not verify the key at all. This
              is useful for a "persona" verification, where you sign  the  key
              of a pseudonymous user.

              2  means  you  did  casual verification of the key. For example,
              this could mean  that  you  verified  the  key  fingerprint  and
              checked the user ID on the key against a photo ID.

              3  means you did extensive verification of the key. For example,
              this could mean that you verified the key fingerprint  with  the
              owner  of the key in person, and that you checked, by means of a
              hard to forge document with a photo ID (such as a passport) that
              the name of the key owner matches the name in the user ID on the
              key, and finally that you verified (by exchange of  email)  that
              the email address on the key belongs to the key owner.

              Note  that  the examples given above for levels 2 and 3 are just
              that: examples. In the end, it is up to you to decide just  what
              "casual" and "extensive" mean to you.

              This option defaults to 0 (no particular claim).

       --min-cert-level
              When  building  the  trust database, treat any signatures with a
              certification level below this as invalid. Defaults to 2,  which
              disregards  level 1 signatures. Note that level 0 "no particular
              claim" signatures are always accepted.

       --trusted-key long key ID or fingerprint
              Assume that the specified key (which should be given as  finger-
              print)  is  as  trustworthy as one of your own secret keys. This
              option is useful if you don't want to keep your secret keys  (or
              one  of  them) online but still want to be able to check the va-
              lidity of a given recipient's or signator's key.  If  the  given
              key is not locally available but an LDAP keyserver is configured
              the missing key is imported from that server.

       --trust-model {pgp|classic|tofu|tofu+pgp|direct|always|auto}
              Set what trust model GnuPG should follow. The models are:

              pgp    This is the Web of Trust combined with  trust  signatures
                     as  used  in PGP 5.x and later. This is the default trust
                     model when creating a new trust database.

              classic
                     This is the standard Web of Trust as introduced by PGP 2.

              tofu

                     TOFU stands for Trust On First Use.  In this trust model,
                     the  first time a key is seen, it is memorized.  If later
                     another key with a user id with the same email address is
                     seen, both keys are marked as suspect.  In that case, the
                     next time either is used, a warning is displayed describ-
                     ing  the conflict, why it might have occurred (either the
                     user generated a new key and failed to cross sign the old
                     and  new keys, the key is forgery, or a man-in-the-middle
                     attack is being attempted), and the user is  prompted  to
                     manually confirm the validity of the key in question.

                     Because a potential attacker is able to control the email
                     address and thereby circumvent the conflict detection al-
                     gorithm  by using an email address that is similar in ap-
                     pearance to a trusted email address, whenever  a  message
                     is  verified,  statistics  about  the  number of messages
                     signed with the key are shown.  In this way, a  user  can
                     easily  identify attacks using fake keys for regular cor-
                     respondents.

                     When compared with the Web of Trust, TOFU offers signifi-
                     cantly  weaker  security guarantees.  In particular, TOFU
                     only helps ensure consistency (that is, that the  binding
                     between a key and email address doesn't change).  A major
                     advantage of TOFU is that it requires little  maintenance
                     to  use correctly.  To use the web of trust properly, you
                     need to actively sign keys and mark users as trusted  in-
                     troducers.   This is a time-consuming process and anecdo-
                     tal evidence suggests that even security-conscious  users
                     rarely  take  the  time to do this thoroughly and instead
                     rely on an ad-hoc TOFU process.

                     In the TOFU model, policies are associated with  bindings
                     between  keys  and  email  addresses (which are extracted
                     from user ids and normalized).  There are five  policies,
                     which can be set manually using the --tofu-policy option.
                     The default policy can be set using  the  --tofu-default-
                     policy option.

                     The  TOFU policies are: auto, good, unknown, bad and ask.
                     The auto policy is used by default (unless overridden  by
                     --tofu-default-policy)  and marks a binding as marginally
                     trusted.  The good, unknown and bad policies mark a bind-
                     ing  as fully trusted, as having unknown trust or as hav-
                     ing trust never, respectively.   The  unknown  policy  is
                     useful  for  just  using TOFU to detect conflicts, but to
                     never assign positive trust to a binding.  The final pol-
                     icy,  ask  prompts  the  user  to  indicate the binding's
                     trust.  If batch mode is enabled (or input is inappropri-
                     ate  in  the  context), then the user is not prompted and
                     the undefined trust level is returned.

              tofu+pgp
                     This trust model combines TOFU with  the  Web  of  Trust.
                     This  is done by computing the trust level for each model
                     and then taking the maximum trust level where  the  trust
                     levels are ordered as follows: unknown < undefined < mar-
                     ginal < fully < ultimate < expired < never.

                     By setting --tofu-default-policy=unknown, this model  can
                     be  used  to  implement the web of trust with TOFU's con-
                     flict detection algorithm, but without its assignment  of
                     positive  trust  values,  which  some  security-conscious
                     users don't like.

              direct Key validity is set directly by the user and  not  calcu-
                     lated  via  the Web of Trust.  This model is solely based
                     on the key and does not distinguish user IDs.  Note  that
                     when changing to another trust model the trust values as-
                     signed to a key are transformed into  ownertrust  values,
                     which also indicate how you trust the owner of the key to
                     sign other keys.

              always Skip key validation and assume that used keys are  always
                     fully  valid. You generally won't use this unless you are
                     using some external validation scheme. This  option  also
                     suppresses  the  "[uncertain]" tag printed with signature
                     checks when there is no evidence  that  the  user  ID  is
                     bound  to the key.  Note that this trust model still does
                     not allow the use of expired, revoked, or disabled keys.

              auto   Select the trust model depending on whatever the internal
                     trust  database says. This is the default model if such a
                     database already exists.  Note that a tofu trust model is
                     not considered here and must be enabled explicitly.

       --auto-key-locate mechanisms
       --no-auto-key-locate
              GnuPG can automatically locate and retrieve keys as needed using
              this option.  This happens when encrypting to an  email  address
              (in  the  "user@example.com" form), and there are no "user@exam-
              ple.com" keys on the local keyring.  This option takes any  num-
              ber  of the mechanisms listed below, in the order they are to be
              tried.  Instead of listing the mechanisms as comma delimited ar-
              guments,  the option may also be given several times to add more
              mechanism.  The option  --no-auto-key-locate  or  the  mechanism
              "clear" resets the list.  The default is "local,wkd".

              cert   Locate a key using DNS CERT, as specified in RFC-4398.

              pka    Locate a key using DNS PKA.

              dane   Locate a key using DANE, as specified in draft-ietf-dane-
                     openpgpkey-05.txt.

              wkd    Locate a key using the Web Key Directory protocol.

              ldap   Using DNS Service Discovery, check the domain in question
                     for  any  LDAP keyservers to use.  If this fails, attempt
                     to locate the key  using  the  PGP  Universal  method  of
                     checking 'ldap://keys.(thedomain)'.

              ntds   Locate the key using the Active Directory (Windows only).
                     This method also allows to search  by  fingerprint  using
                     the command --locate-external-key.  Note that this mecha-
                     nism is actually a shortcut for the mechanism 'keyserver'
                     but using "ldap:///" as the keyserver.

              keyserver
                     Locate  a key using a keyserver.  This method also allows
                     to search by fingerprint using the  command  --locate-ex-
                     ternal-key if any of the configured keyservers is an LDAP
                     server.

              keyserver-URL
                     In addition, a keyserver URL as used in the dirmngr  con-
                     figuration may be used here to query that particular key-
                     server.  This method also allows to search by fingerprint
                     using the command --locate-external-key if the URL speci-
                     fies an LDAP server.

              local  Locate the key using the local keyrings.  This  mechanism
                     allows the user to select the order a local key lookup is
                     done.  Thus using '--auto-key-locate local' is  identical
                     to --no-auto-key-locate.

              nodefault
                     This  flag  disables  the standard local key lookup, done
                     before any of the mechanisms defined by  the  --auto-key-
                     locate  are tried.  The position of this mechanism in the
                     list does not matter.  It is not  required  if  local  is
                     also used.

              clear  Clear all defined mechanisms.  This is useful to override
                     mechanisms given in a config file.  Note that a nodefault
                     in mechanisms will also be cleared unless it is given af-
                     ter the clear.

       --auto-key-import
       --no-auto-key-import
              This is an offline mechanism to get a missing key for  signature
              verification  and for later encryption to this key.  If this op-
              tion is enabled and a signature includes an embedded  key,  that
              key  is used to verify the signature and on verification success
              that key is imported. The default is --no-auto-key-import.

              On the sender  (signing)  site  the  option  --include-key-block
              needs  to  be  used to put the public part of the signing key as
              Key Block subpacket into the signature.

       --auto-key-retrieve
       --no-auto-key-retrieve
              These options enable or disable the automatic retrieving of keys
              from a keyserver when verifying signatures made by keys that are
              not on the local  keyring.   The  default  is  --no-auto-key-re-
              trieve.

              The order of methods tried to lookup the key is:

              1. If the option --auto-key-import is set and the signatures in-
              cludes an embedded key, that key is used to verify the signature
              and on verification success that key is imported.

              2.  If  a  preferred keyserver is specified in the signature and
              the option honor-keyserver-url is active (which is not  the  de-
              fault),  that  keyserver is tried.  Note that the creator of the
              signature uses the option  --sig-keyserver-url  to  specify  the
              preferred keyserver for data signatures.

              3.  If  the  signature  has  the  Signer's  UID  set (e.g. using
              --sender while creating the signature) a Web Key Directory (WKD)
              lookup  is  done.   This is the default configuration but can be
              disabled by removing WKD from the auto-key-locate list or by us-
              ing the option --disable-signer-uid.

              4.  If  the  option  honor-pka-record  is active, the legacy PKA
              method is used.

              5. If any keyserver is configured and the Issuer Fingerprint  is
              part  of the signature (since GnuPG 2.1.16), the configured key-
              servers are tried.

              Note that this option makes a "web bug" like behavior  possible.
              Keyserver  or Web Key Directory operators can see which keys you
              request, so by sending you a message signed by a brand  new  key
              (which  you  naturally will not have on your local keyring), the
              operator can tell both your IP address and  the  time  when  you
              verified the signature.

       --keyid-format {none|short|0xshort|long|0xlong}
              Select  how to display key IDs.  "none" does not show the key ID
              at all but shows the fingerprint in a separate line.  "short" is
              the traditional 8-character key ID.  "long" is the more accurate
              (but less convenient) 16-character key ID.  Add an "0x"  to  ei-
              ther  to  include  an "0x" at the beginning of the key ID, as in
              0x99242560.  Note that this option  is  ignored  if  the  option
              --with-colons is used.

       --keyserver name
              This option is deprecated - please use the --keyserver in 'dirm-
              ngr.conf' instead.

              Use name as your keyserver. This is the server  that  --receive-
              keys,  --send-keys,  and  --search-keys will communicate with to
              receive keys from, send keys to, and search  for  keys  on.  The
              format  of  the name is a URI: `scheme:[//]keyservername[:port]'
              The scheme is the type of keyserver: "hkp"/"hkps" for  the  HTTP
              (or  compatible)  keyservers or "ldap"/"ldaps" for the LDAP key-
              servers.  Note that your particular installation  of  GnuPG  may
              have  other keyserver types available as well. Keyserver schemes
              are case-insensitive.

              Most keyservers synchronize with each other, so there is  gener-
              ally no need to send keys to more than one server. The keyserver
              hkp://keys.gnupg.net uses round robin DNS to  give  a  different
              keyserver each time you use it.

       --keyserver-options {name=value}
              This is a space or comma delimited string that gives options for
              the keyserver. Options can be prefixed with a `no-' to give  the
              opposite  meaning. Valid import-options or export-options may be
              used here as well to apply to importing (--recv-key) or  export-
              ing  (--send-key)  a key from a keyserver. While not all options
              are available for all keyserver types, some common options are:

              include-revoked
                     When searching foruting the trust level  for  each  model
                     and  then  taking the maximum trust level where the trust
                     levels are ordered as follows: unknown < undefined < mar-
                     ginal < fully < ultimate < expired < never.

                     By  setting --tofu-default-policy=unknown, this model can
                     be used to implement the web of trust  with  TOFU's  con-
                     flict  detection algorithm, but without its assignment of
                     positive  trust  values,  which  some  security-conscious
                     users don't like.

              direct Key  validity  is set directly by the user and not calcu-
                     lated via the Web of Trust.  This model is  solely  based
                     on  the key and does not distinguish user IDs.  Note that
                     when changing to another trust model the trust values as-
                     signed  to  a key are transformed into ownertrust values,
                     which also indicate how you trust the owner of the key to
                     sign other keys.

              always Skip  key validation and assume that used keys are always
                     fully valid. You generally won't use this unless you  are
                     using  some  external validation scheme. This option also
                     suppresses the "[uncertain]" tag printed  with  signature
                     checks  when  there  is  no  evidence that the user ID is
                     bound to the key.  Note that this trust model still  does
                     not allow the use of expired, revoked, or disabled keys.

              auto   Select the trust model depending on whatever the internal
                     trust database says. This is the default model if such  a
                     database already exists.  Note that a tofu trust model is
                     not considered here and must be enabled explicitly.

       --auto-key-locate mechanisms
       --no-auto-key-locate
              GnuPG can automatically locate and retrieve keys as needed using
              this  option.   This happens when encrypting to an email address
              (in the "user@example.com" form), and there are  no  "user@exam-
              ple.com"  keys on the local keyring.  This option takes any num-
              ber of the mechanisms listed below, in the order they are to  be
              tried.  Instead of listing the mechanisms as comma delimited ar-
              guments, the option may also be given several times to add  more
              mechanism.   The  option  --no-auto-key-locate  or the mechanism
              "clear" resets the list.  The default is "local,wkd".

              cert   Locate a key using DNS CERT, as specified in RFC-4398.

              pka    Locate a key using DNS PKA.

              dane   Locate a key using DANE, as specified in draft-ietf-dane-
                     openpgpkey-05.txt.

              wkd    Locate a key using the Web Key Directory protocol.

              ldap   Using DNS Service Discovery, check the domain in question
                     for any LDAP keyservers to use.  If this  fails,  attempt
                     to  locate  the  key  using  the  PGP Universal method of
                     checking 'ldap://keys.(thedomain)'.

              ntds   Locate the key using the Active Directory (Windows only).
                     This  method  also  allows to search by fingerprint using
                     the command --locate-external-key.  Note that this mecha-
                     nism is actually a shortcut for the mechanism 'keyserver'
                     but using "ldap:///" as the keyserver.

              keyserver
                     Locate a key using a keyserver.  This method also  allows
                     to  search  by fingerprint using the command --locate-ex-
                     ternal-key if any of the configured keyservers is an LDAP
                     server.

              keyserver-URL
                     In  addition, a keyserver URL as used in the dirmngr con-
                     figuration may be used here to query that particular key-
                     server.  This method also allows to search by fingerprint
                     using the command --locate-external-key if the URL speci-
                     fies an LDAP server.

              local  Locate  the key using the local keyrings.  This mechanism
                     allows the user to select the order a local key lookup is
                     done.   Thus using '--auto-key-locate local' is identical
                     to --no-auto-key-locate.

              nodefault
                     This flag disables the standard local  key  lookup,  done
                     before  any  of the mechanisms defined by the --auto-key-
                     locate are tried.  The position of this mechanism in  the
                     list  does  not  matter.   It is not required if local is
                     also used.

              clear  Clear all defined mechanisms.  This is useful to override
                     mechanisms given in a config file.  Note that a nodefault
                     in mechanisms will also be cleared unless it is given af-
                     ter the clear.

       --auto-key-import
       --no-auto-key-import
              This  is an offline mechanism to get a missing key for signature
              verification and for later encryption to this key.  If this  op-
              tion  is  enabled and a signature includes an embedded key, that
              key is used to verify the signature and on verification  success
              that key is imported. The default is --no-auto-key-import.

              On  the  sender  (signing)  site  the option --include-key-block
              needs to be used to put the public part of the  signing  key  as
              Key Block subpacket into the signature.

       --auto-key-retrieve
       --no-auto-key-retrieve
              These options enable or disable the automatic retrieving of keys
              from a keyserver when verifying signatures made by keys that are
              not  on  the  local  keyring.   The default is --no-auto-key-re-
              trieve.

              The order of methods tried to lookup the key is:

              1. If the option --auto-key-import is set and the signatures in-
              cludes an embedded key, that key is used to verify the signature
              and on verification success that key is imported.

              2. If a preferred keyserver is specified in  the  signature  and
              the  option  honor-keyserver-url is active (which is not the de-
              fault), that keyserver is tried.  Note that the creator  of  the
              signature  uses  the  option  --sig-keyserver-url to specify the
              preferred keyserver for data signatures.

              3. If the  signature  has  the  Signer's  UID  set  (e.g.  using
              --sender while creating the signature) a Web Key Directory (WKD)
              lookup is done.  This is the default configuration  but  can  be
              disabled by removing WKD from the auto-key-locate list or by us-
              ing the option --disable-signer-uid.

              4. If the option honor-pka-record  is  active,  the  legacy  PKA
              method is used.

              5.  If any keyserver is configured and the Issuer Fingerprint is
              part of the signature (since GnuPG 2.1.16), the configured  key-
              servers are tried.

              Note  that this option makes a "web bug" like behavior possible.
              Keyserver or Web Key Directory operators can see which keys  you
              request,  so  by sending you a message signed by a brand new key
              (which you naturally will not have on your local  keyring),  the
              operator  can  tell  both  your IP address and the time when you
              verified the signature.

       --keyid-format {none|short|0xshort|long|0xlong}
              Select how to display key IDs.  "none" does not show the key  ID
              at all but shows the fingerprint in a separate line.  "short" is
              the traditional 8-character key ID.  "long" is the more accurate
              (but  less  convenient) 16-character key ID.  Add an "0x" to ei-
              ther to include an "0x" at the beginning of the key  ID,  as  in
              0x99242560.   Note  that  this  option  is ignored if the option
              --with-colons is used.

       --keyserver name
              This option is deprecated - please use the --keyserver in 'dirm-
              ngr.conf' instead.

              Use  name  as your keyserver. This is the server that --receive-
              keys, --send-keys, and --search-keys will  communicate  with  to
              receive  keys  from,  send  keys to, and search for keys on. The
              format of the name is a  URI:  `scheme:[//]keyservername[:port]'
              The  scheme  is the type of keyserver: "hkp"/"hkps" for the HTTP
              (or compatible) keyservers or "ldap"/"ldaps" for the  LDAP  key-
              servers.   Note  that  your particular installation of GnuPG may
              have other keyserver types available as well. Keyserver  schemes
              are case-insensitive.

              Most  keyservers synchronize with each other, so there is gener-
              ally no need to send keys to more than one server. The keyserver
              hkp://keys.gnupg.net  uses  round  robin DNS to give a different
              keyserver each time you use it.

       --keyserver-options {name=value}
              This is a space or comma delimited string that gives options for
              the  keyserver. Options can be prefixed with a `no-' to give the
              opposite meaning. Valid import-options or export-options may  be
              used  here as well to apply to importing (--recv-key) or export-
              ing (--send-key) a key from a keyserver. While not  all  options
              are available for all keyserver types, some common options are:

              include-revoked
                     When  searching  foruting  the trust level for each model
                     and then taking the maximum trust level where  the  trust
                     levels are ordered as follows: unknown < undefined < mar-
                     ginal < fully < ultimate < expired < never.

                     By setting --tofu-default-policy=unknown, this model  can
                     be  used  to  implement the web of trust with TOFU's con-
                     flict detection algorithm, but without its assignment  of
                     positive  trust  values,  which  some  security-conscious
                     users don't like.

              direct Key validity is set directly by the user and  not  calcu-
                     lated  via  the Web of Trust.  This model is solely based
                     on the key and does not distinguish user IDs.  Note  that
                     when changing to another trust model the trust values as-
                     signed to a key are transformed into  ownertrust  values,
                     which also indicate how you trust the owner of the key to
                     sign other keys.

              always Skip key validation and assume that used keys are  always
                     fully  valid. You generally won't use this unless you are
                     using some external validation scheme. This  option  also
                     suppresses  the  "[uncertain]" tag printed with signature
                     checks when there is no evidence  that  the  user  ID  is
                     bound  to the key.  Note that this trust model still does
                     not allow the use of expired, revoked, or disabled keys.

              auto   Select the trust model depending on whatever the internal
                     trust  database says. This is the default model if such a
                     database already exists.  Note that a tofu trust model is
                     not considered here and must be enabled explicitly.

       --auto-key-locate mechanisms
       --no-auto-key-locate
              GnuPG can automatically locate and retrieve keys as needed using
              this option.  This happens when encrypting to an  email  address
              (in  the  "user@example.com" form), and there are no "user@exam-
              ple.com" keys on the local keyring.  This option takes any  num-
              ber  of the mechanisms listed below, in the order they are to be
              tried.  Instead of listing the mechanisms as comma delimited ar-
              guments,  the option may also be given several times to add more
              mechanism.  The option  --no-auto-key-locate  or  the  mechanism
              "clear" resets the list.  The default is "local,wkd".

              cert   Locate a key using DNS CERT, as specified in RFC-4398.

              pka    Locate a key using DNS PKA.

              dane   Locate a key using DANE, as specified in draft-ietf-dane-
                     openpgpkey-05.txt.

              wkd    Locate a key using the Web Key Directory protocol.

              ldap   Using DNS Service Discovery, check the domain in question
                     for  any  LDAP keyservers to use.  If this fails, attempt
                     to locate the key  using  the  PGP  Universal  method  of
                     checking 'ldap://keys.(thedomain)'.

              ntds   Locate the key using the Active Directory (Windows only).
                     This method also allows to search  by  fingerprint  using
                     the command --locate-external-key.  Note that this mecha-
                     nism is actually a shortcut for the mechanism 'keyserver'
                     but using "ldap:///" as the keyserver.

              keyserver
                     Locate  a key using a keyserver.  This method also allows
                     to search by fingerprint using the  command  --locate-ex-
                     ternal-key if any of the configured keyservers is an LDAP
                     server.

              keyserver-URL
                     In addition, a keyserver URL as used in the dirmngr  con-
                     figuration may be used here to query that particular key-
                     server.  This method also allows to search by fingerprint
                     using the command --locate-external-key if the URL speci-
                     fies an LDAP server.

              local  Locate the key using the local keyrings.  This  mechanism
                     allows the user to select the order a local key lookup is
                     done.  Thus using '--auto-key-locate local' is  identical
                     to --no-auto-key-locate.

              nodefault
                     This  flag  disables  the standard local key lookup, done
                     before any of the mechanisms defined by  the  --auto-key-
                     locate  are tried.  The position of this mechanism in the
                     list does not matter.  It is not  required  if  local  is
                     also used.

              clear  Clear all defined mechanisms.  This is useful to override
                     mechanisms given in a config file.  Note that a nodefault
                     in mechanisms will also be cleared unless it is given af-
                     ter the clear.

       --auto-key-import
       --no-auto-key-import
              This is an offline mechanism to get a missing key for  signature
              verification  and for later encryption to this key.  If this op-
              tion is enabled and a signature includes an embedded  key,  that
              key  is used to verify the signature and on verification success
              that key is imported. The default is --no-auto-key-import.

              On the sender  (signing)  site  the  option  --include-key-block
              needs  to  be  used to put the public part of the signing key as
              Key Block subpacket into the signature.

       --auto-key-retrieve
       --no-auto-key-retrieve
              These options enable or disable the automatic retrieving of keys
              from a keyserver when verifying signatures made by keys that are
              not on the local  keyring.   The  default  is  --no-auto-key-re-
              trieve.

              The order of methods tried to lookup the key is:

              1. If the option --auto-key-import is set and the signatures in-
              cludes an embedded key, that key is used to verify the signature
              and on verification success that key is imported.

              2.  If  a  preferred keyserver is specified in the signature and
              the option honor-keyserver-url is active (which is not  the  de-
              fault),  that  keyserver is tried.  Note that the creator of the
              signature uses the option  --sig-keyserver-url  to  specify  the
              preferred keyserver for data signatures.

              3.  If  the  signature  has  the  Signer's  UID  set (e.g. using
              --sender while creating the signature) a Web Key Directory (WKD)
              lookup  is  done.   This is the default configuration but can be
              disabled by removing WKD from the auto-key-locate list or by us-
              ing the option --disable-signer-uid.

              4.  If  the  option  honor-pka-record  is active, the legacy PKA
              method is used.

              5. If any keyserver is configured and the Issuer Fingerprint  is
              part  of the signature (since GnuPG 2.1.16), the configured key-
              servers are tried.

              Note that this option makes a "web bug" like behavior  possible.
              Keyserver  or Web Key Directory operators can see which keys you
              request, so by sending you a message signed by a brand  new  key
              (which  you  naturally will not have on your local keyring), the
              operator can tell both your IP address and  the  time  when  you
              verified the signature.

       --keyid-format {none|short|0xshort|long|0xlong}
              Select  how to display key IDs.  "none" does not show the key ID
              at all but shows the fingerprint in a separate line.  "short" is
              the traditional 8-character key ID.  "long" is the more accurate
              (but less convenient) 16-character key ID.  Add an "0x"  to  ei-
              ther  to  include  an "0x" at the beginning of the key ID, as in
              0x99242560.  Note that this option  is  ignored  if  the  option
              --with-colons is used.

       --keyserver name
              This option is deprecated - please use the --keyserver in 'dirm-
              ngr.conf' instead.

              Use name as your keyserver. This is the server  that  --receive-
              keys,  --send-keys,  and  --search-keys will communicate with to
              receive keys from, send keys to, and search  for  keys  on.  The
              format  of  the name is a URI: `scheme:[//]keyservername[:port]'
              The scheme is the type of keyserver: "hkp"/"hkps" for  the  HTTP
              (or  compatible)  keyservers or "ldap"/"ldaps" for the LDAP key-
              servers.  Note that your particular installation  of  GnuPG  may
              have  other keyserver types available as well. Keyserver schemes
              are case-insensitive.

              Most keyservers synchronize with each other, so there is  gener-
              ally no need to send keys to more than one server. The keyserver
              hkp://keys.gnupg.net uses round robin DNS to  give  a  different
              keyserver each time you use it.

       --keyserver-options {name=value}
              This is a space or comma delimited string that gives options for
              the keyserver. Options can be prefixed with a `no-' to give  the
              opposite  meaning. Valid import-options or export-options may be
              used here as well to apply to importing (--recv-key) or  export-
              ing  (--send-key)  a key from a keyserver. While not all options
              are available for all keyserver types, some common options are:

              include-revoked
                     When searching foruting the trust level  for  each  model
                     and  then  taking the maximum trust level where the trust
                     levels are ordered as follows: unknown < undefined < mar-
                     ginal < fully < ultimate < expired < never.

                     By  setting --tofu-default-policy=unknown, this model can
                     be used to implement the web of trust  with  TOFU's  con-
                     flict  detection algorithm, but without its assignment of
                     positive  trust  values,  which  some  security-conscious
                     users don't like.

              direct Key  validity  is set directly by the user and not calcu-
                     lated via the Web of Trust.  This model is  solely  based
                     on  the key and does not distinguish user IDs.  Note that
                     when changing to another trust model the trust values as-
                     signed  to  a key are transformed into ownertrust values,
                     which also indicate how you trust the owner of the key to
                     sign other keys.

              always Skip  key validation and assume that used keys are always
                     fully valid. You generally won't use this unless you  are
                     using  some  external validation scheme. This option also
                     suppresses the "[uncertain]" tag printed  with  signature
                     checks  when  there  is  no  evidence that the user ID is
                     bound to the key.  Note that this trust model still  does
                     not allow the use of expired, revoked, or disabled keys.

              auto   Select the trust model depending on whatever the internal
                     trust database says. This is the default model if such  a
                     database already exists.  Note that a tofu trust model is
                     not considered here and must be enabled explicitly.

       --auto-key-locate mechanisms
       --no-auto-key-locate
              GnuPG can automatically locate and retrieve keys as needed using
              this  option.   This happens when encrypting to an email address
              (in the "user@example.com" form), and there are  no  "user@exam-
              ple.com"  keys on the local keyring.  This option takes any num-
              ber of the mechanisms listed below, in the order they are to  be
              tried.  Instead of listing the mechanisms as comma delimited ar-
              guments, the option may also be given several times to add  more
              mechanism.   The  option  --no-auto-key-locate  or the mechanism
              "clear" resets the list.  The default is "local,wkd".

              cert   Locate a key using DNS CERT, as specified in RFC-4398.

              pka    Locate a key using DNS PKA.

              dane   Locate a key using DANE, as specified in draft-ietf-dane-
                     openpgpkey-05.txt.

              wkd    Locate a key using the Web Key Directory protocol.

              ldap   Using DNS Service Discovery, check the domain in question
                     for any LDAP keyservers to use.  If this  fails,  attempt
                     to  locate  the  key  using  the  PGP Universal method of
                     checking 'ldap://keys.(thedomain)'.

              ntds   Locate the key using the Active Directory (Windows only).
                     This  method  also  allows to search by fingerprint using
                     the command --locate-external-key.  Note that this mecha-
                     nism is actually a shortcut for the mechanism 'keyserver'
                     but using "ldap:///" as the keyserver.

              keyserver
                     Locate a key using a keyserver.  This method also  allows
                     to  search  by fingerprint using the command --locate-ex-
                     ternal-key if any of the configured keyservers is an LDAP
                     server.

              keyserver-URL
                     In  addition, a keyserver URL as used in the dirmngr con-
                     figuration may be used here to query that particular key-
                     server.  This method also allows to search by fingerprint
                     using the command --locate-external-key if the URL speci-
                     fies an LDAP server.

              local  Locate  the key using the local keyrings.  This mechanism
                     allows the user to select the order a local key lookup is
                     done.   Thus using '--auto-key-locate local' is identical
                     to --no-auto-key-locate.

              nodefault
                     This flag disables the standard local  key  lookup,  done
                     before  any  of the mechanisms defined by the --auto-key-
                     locate are tried.  The position of this mechanism in  the
                     list  does  not  matter.   It is not required if local is
                     also used.

              clear  Clear all defined mechanisms.  This is useful to override
                     mechanisms given in a config file.  Note that a nodefault
                     in mechanisms will also be cleared unless it is given af-
                     ter the clear.

       --auto-key-import
       --no-auto-key-import
              This  is an offline mechanism to get a missing key for signature
              verification and for later encryption to this key.  If this  op-
              tion  is  enabled and a signature includes an embedded key, that
              key is used to verify the signature and on verification  success
              that key is imported. The default is --no-auto-key-import.

              On  the  sender  (signing)  site  the option --include-key-block
              needs to be used to put the public part of the  signing  key  as
              Key Block subpacket into the signature.

       --auto-key-retrieve
       --no-auto-key-retrieve
              These options enable or disable the automatic retrieving of keys
              from a keyserver when verifying signatures made by keys that are
              not  on  the  local  keyring.   The default is --no-auto-key-re-
              trieve.

              The order of methods tried to lookup the key is:

              1. If the option --auto-key-import is set and the signatures in-
              cludes an embedded key, that key is used to verify the signature
              and on verification success that key is imported.

              2. If a preferred keyserver is specified in  the  signature  and
              the  option  honor-keyserver-url is active (which is not the de-
              fault), that keyserver is tried.  Note that the creator  of  the
              signature  uses  the  option  --sig-keyserver-url to specify the
              preferred keyserver for data signatures.

              3. If the  signature  has  the  Signer's  UID  set  (e.g.  using
              --sender while creating the signature) a Web Key Directory (WKD)
              lookup is done.  This is the default configuration  but  can  be
              disabled by removing WKD from the auto-key-locate list or by us-
              ing the option --disable-signer-uid.

              4. If the option honor-pka-record  is  active,  the  legacy  PKA
              method is used.

              5.  If any keyserver is configured and the Issuer Fingerprint is
              part of the signature (since GnuPG 2.1.16), the configured  key-
              servers are tried.

              Note  that this option makes a "web bug" like behavior possible.
              Keyserver or Web Key Directory operators can see which keys  you
              request,  so  by sending you a message signed by a brand new key
              (which you naturally will not have on your local  keyring),  the
              operator  can  tell  both  your IP address and the time when you
              verified the signature.

       --keyid-format {none|short|0xshort|long|0xlong}
              Select how to display key IDs.  "none" does not show the key  ID
              at all but shows the fingerprint in a separate line.  "short" is
              the traditional 8-character key ID.  "long" is the more accurate
              (but  less  convenient) 16-character key ID.  Add an "0x" to ei-
              ther to include an "0x" at the beginning of the key  ID,  as  in
              0x99242560.   Note  that  this  option  is ignored if the option
              --with-colons is used.

       --keyserver name
              This option is deprecated - please use the --keyserver in 'dirm-
              ngr.conf' instead.

              Use  name  as your keyserver. This is the server that --receive-
              keys, --send-keys, and --search-keys will  communicate  with  to
              receive  keys  from,  send  keys to, and search for keys on. The
              format of the name is a  URI:  `scheme:[//]keyservername[:port]'
              The  scheme  is the type of keyserver: "hkp"/"hkps" for the HTTP
              (or compatible) keyservers or "ldap"/"ldaps" for the  LDAP  key-
              servers.   Note  that  your particular installation of GnuPG may
              have other keyserver types available as well. Keyserver  schemes
              are case-insensitive.

              Most  keyservers synchronize with each other, so there is gener-
              ally no need to send keys to more than one server. The keyserver
              hkp://keys.gnupg.net  uses  round  robin DNS to give a different
              keyserver each time you use it.

       --keyserver-options {name=value}
              This is a space or comma delimited string that gives options for
              the  keyserver. Options can be prefixed with a `no-' to give the
              opposite meaning. Valid import-options or export-options may  be
              used  here as well to apply to importing (--recv-key) or export-
              ing (--send-key) a key from a keyserver. While not  all  options
              are available for all keyserver types, some common options are:

              include-revoked
                     When  searching  foruting  the trust level for each model
                     and then taking the maximum trust level where  the  trust
                     levels are ordered as follows: unknown < undefined < mar-
                     ginal < fully < ultimate < expired < never.

                     By setting --tofu-default-policy=unknown, this model  can
                     be  used  to  implement the web of trust with TOFU's con-
                     flict detection algorithm, but without its assignment  of
                     positive  trust  values,  which  some  security-conscious
                     users don't like.

              direct Key validity is set directly by the user and  not  calcu-
                     lated  via  the Web of Trust.  This model is solely based
                     on the key and does not distinguish user IDs.  Note  that
                     when changing to another trust model the trust values as-
                     signed to a key are transformed into  ownertrust  values,
                     which also indicate how you trust the owner of the key to
                     sign other keys.

              always Skip key validation and assume that used keys are  always
                     fully  valid. You generally won't use this unless you are
                     using some external validation scheme. This  option  also
                     suppresses  the  "[uncertain]" tag printed with signature
                     checks when there is no evidence  that  the  user  ID  is
                     bound  to the key.  Note that this trust model still does
                     not allow the use of expired, revoked, or disabled keys.

              auto   Select the trust model depending on whatever the internal
                     trust  database says. This is the default model if such a
                     database already exists.  Note that a tofu trust model is
                     not considered here and must be enabled explicitly.

       --auto-key-locate mechanisms
       --no-auto-key-locate
              GnuPG can automatically locate and retrieve keys as needed using
              this option.  This happens when encrypting to an  email  address
              (in  the  "user@example.com" form), and there are no "user@exam-
              ple.com" keys on the local keyring.  This option takes any  num-
              ber  of the mechanisms listed below, in the order they are to be
              tried.  Instead of listing the mechanisms as comma delimited ar-
              guments,  the option may also be given several times to add more
              mechanism.  The option  --no-auto-key-locate  or  the  mechanism
              "clear" resets the list.  The default is "local,wkd".

              cert   Locate a key using DNS CERT, as specified in RFC-4398.

              pka    Locate a key using DNS PKA.

              dane   Locate a key using DANE, as specified in draft-ietf-dane-
                     openpgpkey-05.txt.

              wkd    Locate a key using the Web Key Directory protocol.

              ldap   Using DNS Service Discovery, check the domain in question
                     for  any  LDAP keyservers to use.  If this fails, attempt
                     to locate the key  using  the  PGP  Universal  method  of
                     checking 'ldap://keys.(thedomain)'.

              ntds   Locate the key using the Active Directory (Windows only).
                     This method also allows to search  by  fingerprint  using
                     the command --locate-external-key.  Note that this mecha-
                     nism is actually a shortcut for the mechanism 'keyserver'
                     but using "ldap:///" as the keyserver.

              keyserver
                     Locate  a key using a keyserver.  This method also allows
                     to search by fingerprint using the  command  --locate-ex-
                     ternal-key if any of the configured keyservers is an LDAP
                     server.

              keyserver-URL
                     In addition, a keyserver URL as used in the dirmngr  con-
                     figuration may be used here to query that particular key-
                     server.  This method also allows to search by fingerprint
                     using the command --locate-external-key if the URL speci-
                     fies an LDAP server.

              local  Locate the key using the local keyrings.  This  mechanism
                     allows the user to select the order a local key lookup is
                     done.  Thus using '--auto-key-locate local' is  identical
                     to --no-auto-key-locate.

              nodefault
                     This  flag  disables  the standard local key lookup, done
                     before any of the mechanisms defined by  the  --auto-key-
                     locate  are tried.  The position of this mechanism in the
                     list does not matter.  It is not  required  if  local  is
                     also used.

              clear  Clear all defined mechanisms.  This is useful to override
                     mechanisms given in a config file.  Note that a nodefault
                     in mechanisms will also be cleared unless it is given af-
                     ter the clear.

       --auto-key-import
       --no-auto-key-import
              This is an offline mechanism to get a missing key for  signature
              verification  and for later encryption to this key.  If this op-
              tion is enabled and a signature includes an embedded  key,  that
              key  is used to verify the signature and on verification success
              that key is imported. The default is --no-auto-key-import.

              On the sender  (signing)  site  the  option  --include-key-block
              needs  to  be  used to put the public part of the signing key as
              Key Block subpacket into the signature.

       --auto-key-retrieve
       --no-auto-key-retrieve
              These options enable or disable the automatic retrieving of keys
              from a keyserver when verifying signatures made by keys that are
              not on the local  keyring.   The  default  is  --no-auto-key-re-
              trieve.

              The order of methods tried to lookup the key is:

              1. If the option --auto-key-import is set and the signatures in-
              cludes an embedded key, that key is used to verify the signature
              and on verification success that key is imported.

              2.  If  a  preferred keyserver is specified in the signature and
              the option honor-keyserver-url is active (which is not  the  de-
              fault),  that  keyserver is tried.  Note that the creator of the
              signature uses the option  --sig-keyserver-url  to  specify  the
              preferred keyserver for data signatures.

              3.  If  the  signature  has  the  Signer's  UID  set (e.g. using
              --sender while creating the signature) a Web Key Directory (WKD)
              lookup  is  done.   This is the default configuration but can be
              disabled by removing WKD from the auto-key-locate list or by us-
              ing the option --disable-signer-uid.

              4.  If  the  option  honor-pka-record  is active, the legacy PKA
              method is used.

              5. If any keyserver is configured and the Issuer Fingerprint  is
              part  of the signature (since GnuPG 2.1.16), the configured key-
              servers are tried.

              Note that this option makes a "web bug" like behavior  possible.
              Keyserver  or Web Key Directory operators can see which keys you
              request, so by sending you a message signed by a brand  new  key
              (which  you  naturally will not have on your local keyring), the
              operator can tell both your IP address and  the  time  when  you
              verified the signature.

       --keyid-format {none|short|0xshort|long|0xlong}
              Select  how to display key IDs.  "none" does not show the key ID
              at all but shows the fingerprint in a separate line.  "short" is
              the traditional 8-character key ID.  "long" is the more accurate
              (but less convenient) 16-character key ID.  Add an "0x"  to  ei-
              ther  to  include  an "0x" at the beginning of the key ID, as in
              0x99242560.  Note that this option  is  ignored  if  the  option
              --with-colons is used.

       --keyserver name
              This option is deprecated - please use the --keyserver in 'dirm-
              ngr.conf' instead.

              Use name as your keyserver. This is the server  that  --receive-
              keys,  --send-keys,  and  --search-keys will communicate with to
              receive keys from, send keys to, and search  for  keys  on.  The
              format  of  the name is a URI: `scheme:[//]keyservername[:port]'
              The scheme is the type of keyserver: "hkp"/"hkps" for  the  HTTP
              (or  compatible)  keyservers or "ldap"/"ldaps" for the LDAP key-
              servers.  Note that your particular installation  of  GnuPG  may
              have  other keyserver types available as well. Keyserver schemes
              are case-insensitive.

              Most keyservers synchronize with each other, so there is  gener-
              ally no need to send keys to more than one server. The keyserver
              hkp://keys.gnupg.net uses round robin DNS to  give  a  different
              keyserver each time you use it.

       --keyserver-options {name=value}
              This is a space or comma delimited string that gives options for
              the keyserver. Options can be prefixed with a `no-' to give  the
              opposite  meaning. Valid import-options or export-options may be
              used here as well to apply to importing (--recv-key) or  export-
              ing  (--send-key)  a key from a keyserver. While not all options
              are available for all keyserver types, some common options are:

              include-revoked
                     When searching foruting the trust level  for  each  model
                     and  then  taking the maximum trust level where the trust
                     levels are ordered as follows: unknown < undefined < mar-
                     ginal < fully < ultimate < expired < never.

                     By  setting --tofu-default-policy=unknown, this model can
                     be used to implement the web of trust  with  TOFU's  con-
                     flict  detection algorithm, but without its assignment of
                     positive  trust  values,  which  some  security-conscious
                     users don't like.

              direct Key  validity  is set directly by the user and not calcu-
                     lated via the Web of Trust.  This model is  solely  based
                     on  the key and does not distinguish user IDs.  Note that
                     when changing to another trust model the trust values as-
                     signed  to  a key are transformed into ownertrust values,
                     which also indicate how you trust the owner of the key to
                     sign other keys.

              always Skip  key validation and assume that used keys are always
                     fully valid. You generally won't use this unless you  are
                     using  some  external validation scheme. This option also
                     suppresses the "[uncertain]" tag printed  with  signature
                     checks  when  there  is  no  evidence that the user ID is
                     bound to the key.  Note that this trust model still  does
                     not allow the use of expired, revoked, or disabled keys.

              auto   Select the trust model depending on whatever the internal
                     trust database says. This is the default model if such  a
                     database already exists.  Note that a tofu trust model is
                     not considered here and must be enabled explicitly.

       --auto-key-locate mechanisms
       --no-auto-key-locate
              GnuPG can automatically locate and retrieve keys as needed using
              this  option.   This happens when encrypting to an email address
              (in the "user@example.com" form), and there are  no  "user@exam-
              ple.com"  keys on the local keyring.  This option takes any num-
              ber of the mechanisms listed below, in the order they are to  be
              tried.  Instead of listing the mechanisms as comma delimited ar-
              guments, the option may also be given several times to add  more
              mechanism.   The  option  --no-auto-key-locate  or the mechanism
              "clear" resets the list.  The default is "local,wkd".

              cert   Locate a key using DNS CERT, as specified in RFC-4398.

              pka    Locate a key using DNS PKA.

              dane   Locate a key using DANE, as specified in draft-ietf-dane-
                     openpgpkey-05.txt.

              wkd    Locate a key using the Web Key Directory protocol.

              ldap   Using DNS Service Discovery, check the domain in question
                     for any LDAP keyservers to use.  If this  fails,  attempt
                     to  locate  the  key  using  the  PGP Universal method of
                     checking 'ldap://keys.(thedomain)'.

              ntds   Locate the key using the Active Directory (Windows only).
                     This  method  also  allows to search by fingerprint using
                     the command --locate-external-key.  Note that this mecha-
                     nism is actually a shortcut for the mechanism 'keyserver'
                     but using "ldap:///" as the keyserver.

              keyserver
                     Locate a key using a keyserver.  This method also  allows
                     to  search  by fingerprint using the command --locate-ex-
                     ternal-key if any of the configured keyservers is an LDAP
                     server.

              keyserver-URL
                     In  addition, a keyserver URL as used in the dirmngr con-
                     figuration may be used here to query that particular key-
                     server.  This method also allows to search by fingerprint
                     using the command --locate-external-key if the URL speci-
                     fies an LDAP server.

              local  Locate  the key using the local keyrings.  This mechanism
                     allows the user to select the order a local key lookup is
                     done.   Thus using '--auto-key-locate local' is identical
                     to --no-auto-key-locate.

              nodefault
                     This flag disables the standard local  key  lookup,  done
                     before  any  of the mechanisms defined by the --auto-key-
                     locate are tried.  The position of this mechanism in  the
                     list  does  not  matter.   It is not required if local is
                     also used.

              clear  Clear all defined mechanisms.  This is useful to override
                     mechanisms given in a config file.  Note that a nodefault
                     in mechanisms will also be cleared unless it is given af-
                     ter the clear.

       --auto-key-import
       --no-auto-key-import
              This  is an offline mechanism to get a missing key for signature
              verification and for later encryption to this key.  If this  op-
              tion  is  enabled and a signature includes an embedded key, that
              key is used to verify the signature and on verification  success
              that key is imported. The default is --no-auto-key-import.

              On  the  sender  (signing)  site  the option --include-key-block
              needs to be used to put the public part of the  signing  key  as
              Key Block subpacket into the signature.

       --auto-key-retrieve
       --no-auto-key-retrieve
              These options enable or disable the automatic retrieving of keys
              from a keyserver when verifying signatures made by keys that are
              not  on  the  local  keyring.   The default is --no-auto-key-re-
              trieve.

              The order of methods tried to lookup the key is:

              1. If the option --auto-key-import is set and the signatures in-
              cludes an embedded key, that key is used to verify the signature
              and on verification success that key is imported.

              2. If a preferred keyserver is specified in  the  signature  and
              the  option  honor-keyserver-url is active (which is not the de-
              fault), that keyserver is tried.  Note that the creator  of  the
              signature  uses  the  option  --sig-keyserver-url to specify the
              preferred keyserver for data signatures.

              3. If the  signature  has  the  Signer's  UID  set  (e.g.  using
              --sender while creating the signature) a Web Key Directory (WKD)
              lookup is done.  This is the default configuration  but  can  be
              disabled by removing WKD from the auto-key-locate list or by us-
              ing the option --disable-signer-uid.

              4. If the option honor-pka-record  is  active,  the  legacy  PKA
              method is used.

              5.  If any keyserver is configured and the Issuer Fingerprint is
              part of the signature (since GnuPG 2.1.16), the configured  key-
              servers are tried.

              Note  that this option makes a "web bug" like behavior possible.
              Keyserver or Web Key Directory operators can see which keys  you
              request,  so  by sending you a message signed by a brand new key
              (which you naturally will not have on your local  keyring),  the
              operator  can  tell  both  your IP address and the time when you
              verified the signature.

       --keyid-format {none|short|0xshort|long|0xlong}
              Select how to display key IDs.  "none" does not show the key  ID
              at all but shows the fingerprint in a separate line.  "short" is
              the traditional 8-character key ID.  "long" is the more accurate
              (but  less  convenient) 16-character key ID.  Add an "0x" to ei-
              ther to include an "0x" at the beginning of the key  ID,  as  in
              0x99242560.   Note  that  this  option  is ignored if the option
              --with-colons is used.

       --keyserver name
              This option is deprecated - please use the --keyserver in 'dirm-
              ngr.conf' instead.

              Use  name  as your keyserver. This is the server that --receive-
              keys, --send-keys, and --search-keys will  communicate  with  to
              receive  keys  from,  send  keys to, and search for keys on. The
              format of the name is a  URI:  `scheme:[//]keyservername[:port]'
              The  scheme  is the type of keyserver: "hkp"/"hkps" for the HTTP
              (or compatible) keyservers or "ldap"/"ldaps" for the  LDAP  key-
              servers.   Note  that  your particular installation of GnuPG may
              have other keyserver types available as well. Keyserver  schemes
              are case-insensitive.

              Most  keyservers synchronize with each other, so there is gener-
              ally no need to send keys to more than one server. The keyserver
              hkp://keys.gnupg.net  uses  round  robin DNS to give a different
              keyserver each time you use it.

       --keyserver-options {name=value}
              This is a space or comma delimited string that gives options for
              the  keyserver. Options can be prefixed with a `no-' to give the
              opposite meaning. Valid import-options or export-options may  be
              used  here as well to apply to importing (--recv-key) or export-
              ing (--send-key) a key from a keyserver. While not  all  options
              are available for all keyserver types, some common options are:

              include-revoked
                     When  searching  foruting  the trust level for each model
                     and then taking the maximum trust level where  the  trust
                     levels are ordered as follows: unknown < undefined < mar-
                     ginal < fully < ultimate < expired < never.

                     By setting --tofu-default-policy=unknown, this model  can
                     be  used  to  implement the web of trust with TOFU's con-
                     flict detection algorithm, but without its assignment  of
                     positive  trust  values,  which  some  security-conscious
                     users don't like.

              direct Key validity is set directly by the user and  not  calcu-
                     lated  via  the Web of Trust.  This model is solely based
                     on the key and does not distinguish user IDs.  Note  that
                     when changing to another trust model the trust values as-
                     signed to a key are transformed into  ownertrust  values,
                     which also indicate how you trust the owner of the key to
                     sign other keys.

              always Skip key validation and assume that used keys are  always
                     fully  valid. You generally won't use this unless you are
                     using some external validation scheme. This  option  also
                     suppresses  the  "[uncertain]" tag printed with signature
                     checks when there is no evidence  that  the  user  ID  is
                     bound  to the key.  Note that this trust model still does
                     not allow the use of expired, revoked, or disabled keys.

              auto   Select the trust model depending on whatever the internal
                     trust  database says. This is the default model if such a
                     database already exists.  Note that a tofu trust model is
                     not considered here and must be enabled explicitly.

       --auto-key-locate mechanisms
       --no-auto-key-locate
              GnuPG can automatically locate and retrieve keys as needed using
              this option.  This happens when encrypting to an  email  address
              (in  the  "user@example.com" form), and there are no "user@exam-
              ple.com" keys on the local keyring.  This option takes any  num-
              ber  of the mechanisms listed below, in the order they are to be
              tried.  Instead of listing the mechanisms as comma delimited ar-
              guments,  the option may also be given several times to add more
              mechanism.  The option  --no-auto-key-locate  or  the  mechanism
              "clear" resets the list.  The default is "local,wkd".

              cert   Locate a key using DNS CERT, as specified in RFC-4398.

              pka    Locate a key using DNS PKA.

              dane   Locate a key using DANE, as specified in draft-ietf-dane-
                     openpgpkey-05.txt.

              wkd    Locate a key using the Web Key Directory protocol.

              ldap   Using DNS Service Discovery, check the domain in question
                     for  any  LDAP keyservers to use.  If this fails, attempt
                     to locate the key  using  the  PGP  Universal  method  of
                     checking 'ldap://keys.(thedomain)'.

              ntds   Locate the key using the Active Directory (Windows only).
                     This method also allows to search  by  fingerprint  using
                     the command --locate-external-key.  Note that this mecha-
                     nism is actually a shortcut for the mechanism 'keyserver'
                     but using "ldap:///" as the keyserver.

              keyserver
                     Locate  a key using a keyserver.  This method also allows
                     to search by fingerprint using the  command  --locate-ex-
                     ternal-key if any of the configured keyservers is an LDAP
                     server.

              keyserver-URL
                     In addition, a keyserver URL as used in the dirmngr  con-
                     figuration may be used here to query that particular key-
                     server.  This method also allows to search by fingerprint
                     using the command --locate-external-key if the URL speci-
                     fies an LDAP server.

              local  Locate the key using the local keyrings.  This  mechanism
                     allows the user to select the order a local key lookup is
                     done.  Thus using '--auto-key-locate local' is  identical
                     to --no-auto-key-locate.

              nodefault
                     This  flag  disables  the standard local key lookup, done
                     before any of the mechanisms defined by  the  --auto-key-
                     locate  are tried.  The position of this mechanism in the
                     list does not matter.  It is not  required  if  local  is
                     also used.

              clear  Clear all defined mechanisms.  This is useful to override
                     mechanisms given in a config file.  Note that a nodefault
                     in mechanisms will also be cleared unless it is given af-
                     ter the clear.

       --auto-key-import
       --no-auto-key-import
              This is an offline mechanism to get a missing key for  signature
              verification  and for later encryption to this key.  If this op-
              tion is enabled and a signature includes an embedded  key,  that
              key  is used to verify the signature and on verification success
              that key is imported. The default is --no-auto-key-import.

              On the sender  (signing)  site  the  option  --include-key-block
              needs  to  be  used to put the public part of the signing key as
              Key Block subpacket into the signature.

       --auto-key-retrieve
       --no-auto-key-retrieve
              These options enable or disable the automatic retrieving of keys
              from a keyserver when verifying signatures made by keys that are
              not on the local  keyring.   The  default  is  --no-auto-key-re-
              trieve.

              The order of methods tried to lookup the key is:

              1. If the option --auto-key-import is set and the signatures in-
              cludes an embedded key, that key is used to verify the signature
              and on verification success that key is imported.

              2.  If  a  preferred keyserver is specified in the signature and
              the option honor-keyserver-url is active (which is not  the  de-
              fault),  that  keyserver is tried.  Note that the creator of the
              signature uses the option  --sig-keyserver-url  to  specify  the
              preferred keyserver for data signatures.

              3.  If  the  signature  has  the  Signer's  UID  set (e.g. using
              --sender while creating the signature) a Web Key Directory (WKD)
              lookup  is  done.   This is the default configuration but can be
              disabled by removing WKD from the auto-key-locate list or by us-
              ing the option --disable-signer-uid.

              4.  If  the  option  honor-pka-record  is active, the legacy PKA
              method is used.

              5. If any keyserver is configured and the Issuer Fingerprint  is
              part  of the signature (since GnuPG 2.1.16), the configured key-
              servers are tried.

              Note that this option makes a "web bug" like behavior  possible.
              Keyserver  or Web Key Directory operators can see which keys you
              request, so by sending you a message signed by a brand  new  key
              (which  you  naturally will not have on your local keyring), the
              operator can tell both your IP address and  the  time  when  you
              verified the signature.

       --keyid-format {none|short|0xshort|long|0xlong}
              Select  how to display key IDs.  "none" does not show the key ID
              at all but shows the fingerprint in a separate line.  "short" is
              the traditional 8-character key ID.  "long" is the more accurate
              (but less convenient) 16-character key ID.  Add an "0x"  to  ei-
              ther  to  include  an "0x" at the beginning of the key ID, as in
              0x99242560.  Note that this option  is  ignored  if  the  option
              --with-colons is used.

       --keyserver name
              This option is deprecated - please use the --keyserver in 'dirm-
              ngr.conf' instead.

              Use name as your keyserver. This is the server  that  --receive-
              keys,  --send-keys,  and  --search-keys will communicate with to
              receive keys from, send keys to, and search  for  keys  on.  The
              format  of  the name is a URI: `scheme:[//]keyservername[:port]'
              The scheme is the type of keyserver: "hkp"/"hkps" for  the  HTTP
              (or  compatible)  keyservers or "ldap"/"ldaps" for the LDAP key-
              servers.  Note that your particular installation  of  GnuPG  may
              have  other keyserver types available as well. Keyserver schemes
              are case-insensitive.

              Most keyservers synchronize with each other, so there is  gener-
              ally no need to send keys to more than one server. The keyserver
              hkp://keys.gnupg.net uses round robin DNS to  give  a  different
              keyserver each time you use it.

       --keyserver-options {name=value}
              This is a space or comma delimited string that gives options for
              the keyserver. Options can be prefixed with a `no-' to give  the
              opposite  meaning. Valid import-options or export-options may be
              used here as well to apply to importing (--recv-key) or  export-
              ing  (--send-key)  a key from a keyserver. While not all options
              are available for all keyserver types, some common options are:

              include-revoked
                     When searching foruting the trust level  for  each  model
                     and  then  taking the maximum trust level where the trust
                     levels are ordered as follows: unknown < undefined < mar-
                     ginal < fully < ultimate < expired < never.

                     By  setting --tofu-default-policy=unknown, this model can
                     be used to implement the web of trust  with  TOFU's  con-
                     flict  detection algorithm, but without its assignment of
                     positive  trust  values,  which  some  security-conscious
                     users don't like.

              direct Key  validity  is set directly by the user and not calcu-
                     lated via the Web of Trust.  This model is  solely  based
                     on  the key and does not distinguish user IDs.  Note that
                     when changing to another trust model the trust values as-
                     signed  to  a key are transformed into ownertrust values,
                     which also indicate how you trust the owner of the key to
                     sign other keys.

              always Skip  key validation and assume that used keys are always
                     fully valid. You generally won't use this unless you  are
                     using  some  external validation scheme. This option also
                     suppresses the "[uncertain]" tag printed  with  signature
                     checks  when  there  is  no  evidence that the user ID is
                     bound to the key.  Note that this trust model still  does
                     not allow the use of expired, revoked, or disabled keys.

              auto   Select the trust model depending on whatever the internal
                     trust database says. This is the default model if such  a
                     database already exists.  Note that a tofu trust model is
                     not considered here and must be enabled explicitly.

       --auto-key-locate mechanisms
       --no-auto-key-locate
              GnuPG can automatically locate and retrieve keys as needed using
              this  option.   This happens when encrypting to an email address
              (in the "user@example.com" form), and there are  no  "user@exam-
              ple.com"  keys on the local keyring.  This option takes any num-
              ber of the mechanisms listed below, in the order they are to  be
              tried.  Instead of listing the mechanisms as comma delimited ar-
              guments, the option may also be given several times to add  more
              mechanism.   The  option  --no-auto-key-locate  or the mechanism
              "clear" resets the list.  The default is "local,wkd".

              cert   Locate a key using DNS CERT, as specified in RFC-4398.

              pka    Locate a key using DNS PKA.

              dane   Locate a key using DANE, as specified in draft-ietf-dane-
                     openpgpkey-05.txt.

              wkd    Locate a key using the Web Key Directory protocol.

              ldap   Using DNS Service Discovery, check the domain in question
                     for any LDAP keyservers to use.  If this  fails,  attempt
                     to  locate  the  key  using  the  PGP Universal method of
                     checking 'ldap://keys.(thedomain)'.

              ntds   Locate the key using the Active Directory (Windows only).
                     This  method  also  allows to search by fingerprint using
                     the command --locate-external-key.  Note that this mecha-
                     nism is actually a shortcut for the mechanism 'keyserver'
                     but using "ldap:///" as the keyserver.

              keyserver
                     Locate a key using a keyserver.  This method also  allows
                     to  search  by fingerprint using the command --locate-ex-
                     ternal-key if any of the configured keyservers is an LDAP
                     server.

              keyserver-URL
                     In  addition, a keyserver URL as used in the dirmngr con-
                     figuration may be used here to query that particular key-
                     server.  This method also allows to search by fingerprint
                     using the command --locate-external-key if the URL speci-
                     fies an LDAP server.

              local  Locate  the key using the local keyrings.  This mechanism
                     allows the user to select the order a local key lookup is
                     done.   Thus using '--auto-key-locate local' is identical
                     to --no-auto-key-locate.

              nodefault
                     This flag disables the standard local  key  lookup,  done
                     before  any  of the mechanisms defined by the --auto-key-
                     locate are tried.  The position of this mechanism in  the
                     list  does  not  matter.   It is not required if local is
                     also used.

              clear  Clear all defined mechanisms.  This is useful to override
                     mechanisms given in a config file.  Note that a nodefault
                     in mechanisms will also be cleared unless it is given af-
                     ter the clear.

       --auto-key-import
       --no-auto-key-import
              This  is an offline mechanism to get a missing key for signature
              verification and for later encryption to this key.  If this  op-
              tion  is  enabled and a signature includes an embedded key, that
              key is used to verify the signature and on verification  success
              that key is imported. The default is --no-auto-key-import.

              On  the  sender  (signing)  site  the option --include-key-block
              needs to be used to put the public part of the  signing  key  as
              Key Block subpacket into the signature.

       --auto-key-retrieve
       --no-auto-key-retrieve
              These options enable or disable the automatic retrieving of keys
              from a keyserver when verifying signatures made by keys that are
              not  on  the  local  keyring.   The default is --no-auto-key-re-
              trieve.

              The order of methods tried to lookup the key is:

              1. If the option --auto-key-import is set and the signatures in-
              cludes an embedded key, that key is used to verify the signature
              and on verification success that key is imported.

              2. If a preferred keyserver is specified in  the  signature  and
              the  option  honor-keyserver-url is active (which is not the de-
              fault), that keyserver is tried.  Note that the creator  of  the
              signature  uses  the  option  --sig-keyserver-url to specify the
              preferred keyserver for data signatures.

              3. If the  signature  has  the  Signer's  UID  set  (e.g.  using
              --sender while creating the signature) a Web Key Directory (WKD)
              lookup is done.  This is the default configuration  but  can  be
              disabled by removing WKD from the auto-key-locate list or by us-
              ing the option --disable-signer-uid.

              4. If the option honor-pka-record  is  active,  the  legacy  PKA
              method is used.

              5.  If any keyserver is configured and the Issuer Fingerprint is
              part of the signature (since GnuPG 2.1.16), the configured  key-
              servers are tried.

              Note  that this option makes a "web bug" like behavior possible.
              Keyserver or Web Key Directory operators can see which keys  you
              request,  so  by sending you a message signed by a brand new key
              (which you naturally will not have on your local  keyring),  the
              operator  can  tell  both  your IP address and the time when you
              verified the signature.

       --keyid-format {none|short|0xshort|long|0xlong}
              Select how to display key IDs.  "none" does not show the key  ID
              at all but shows the fingerprint in a separate line.  "short" is
              the traditional 8-character key ID.  "long" is the more accurate
              (but  less  convenient) 16-character key ID.  Add an "0x" to ei-
              ther to include an "0x" at the beginning of the key  ID,  as  in
              0x99242560.   Note  that  this  option  is ignored if the option
              --with-colons is used.

       --keyserver name
              This option is deprecated - please use the --keyserver in 'dirm-
              ngr.conf' instead.

              Use  name  as your keyserver. This is the server that --receive-
              keys, --send-keys, and --search-keys will  communicate  with  to
              receive  keys  from,  send  keys to, and search for keys on. The
              format of the name is a  URI:  `scheme:[//]keyservername[:port]'
              The  scheme  is the type of keyserver: "hkp"/"hkps" for the HTTP
              (or compatible) keyservers or "ldap"/"ldaps" for the  LDAP  key-
              servers.   Note  that  your particular installation of GnuPG may
              have other keyserver types available as well. Keyserver  schemes
              are case-insensitive.

              Most  keyservers synchronize with each other, so there is gener-
              ally no need to send keys to more than one server. The keyserver
              hkp://keys.gnupg.net  uses  round  robin DNS to give a different
              keyserver each time you use it.

       --keyserver-options {name=value}
              This is a space or comma delimited string that gives options for
              the  keyserver. Options can be prefixed with a `no-' to give the
              opposite meaning. Valid import-options or export-options may  be
              used  here as well to apply to importing (--recv-key) or export-
              ing (--send-key) a key from a keyserver. While not  all  options
              are available for all keyserver types, some common options are:

              include-revoked
                     When  searching  foruting  the trust level for each model
                     and then taking the maximum trust level where  the  trust
                     levels are ordered as follows: unknown < undefined < mar-
                     ginal < fully < ultimate < expired < never.

                     By setting --tofu-defey but slightly different.  For  ex-
                     ample         the        current        default        of
                     "rsa2048/cert,sign+rsa2048/encr" (or  "rsa3072")  can  be
                     changed to the value of what we currently call future de-
                     fault, which  is  "ed25519/cert,sign+cv25519/encr".   You
                     need  to  consult  the  source code to learn the details.
                     Note that the advanced key generation commands can always
                     be used to specify a key algorithm directly.

              --force-sign-key
                     This  option  modifies  the  behaviour  of  the  commands
                     --quick-sign-key, --quick-lsign-key, and the "sign"  sub-
                     commands  of  --edit-key by forcing the creation of a key
                     signature, even if one already exists.

              --forbid-gen-key
                     This option is intended for use in the global config file
                     to disallow the use of generate key commands.  Those com-
                     mands will then fail with the error code for Not Enabled.

              --allow-secret-key-import
                     This is an obsolete option and is not used anywhere.

              --allow-multiple-messages

              --no-allow-multiple-messages
                     Allow processing of multiple OpenPGP  messages  contained
                     in  a single file or stream.  Some programs that call GPG
                     are not prepared to deal  with  multiple  messages  being
                     processed  together, so this option defaults to no.  Note
                     that versions of GPG prior to 1.4.7 always allowed multi-
                     ple  messages.  Future versions of GnUPG will remove this
                     option.

                     Warning: Do not use this option unless you need it  as  a
                     temporary workaround!

              --enable-special-filenames
                     This option enables a mode in which filenames of the form
                     '-&n', where n is a non-negative decimal number, refer to
                     the file descriptor n and not to a file with that name.

              --no-expensive-trust-checks
                     Experimental use only.

              --preserve-permissions
                     Don't  change the permissions of a secret keyring back to
                     user read/write only. Use this option only if you  really
                     know what you are doing.

              --default-preference-list string
                     Set the list of default preferences to string. This pref-
                     erence list is used for new keys and becomes the  default
                     for "setpref" in the edit menu.

              --default-keyserver-url name
                     Set  the  default  keyserver  URL to name. This keyserver
                     will be used as the keyserver  URL  when  writing  a  new
                     self-signature  on  a  key, which includes key generation
                     and changing preferences.

              --list-config
                     Display  various  internal  configuration  parameters  of
                     GnuPG. This option is intended for external programs that
                     call GnuPG to perform tasks, and is  thus  not  generally
                     useful.  See the file 'doc/DETAILS' in the source distri-
                     bution for the details of which configuration  items  may
                     be  listed.  --list-config  is  only  usable with --with-
                     colons set.

              --list-gcrypt-config
                     Display  various  internal  configuration  parameters  of
                     Libgcrypt.

              --gpgconf-list
                     This  command  is similar to --list-config but in general
                     only internally used by the gpgconf tool.

              --gpgconf-test
                     This is more or less dummy action.  However it parses the
                     configuration  file  and returns with failure if the con-
                     figuration file would prevent gpg from startup.  Thus  it
                     may  be  used  to run a syntax check on the configuration
                     file.

   Deprecated options

       --show-photos
       --no-show-photos
              Causes   --list-keys,   --list-signatures,   --list-public-keys,
              --list-secret-keys,  and  verifying  a signature to also display
              the photo ID attached to the key,  if  any.  See  also  --photo-
              viewer.   These   options  are  deprecated.  Use  --list-options
              [no-]show-photos and/or  --verify-options  [no-]show-photos  in-
              stead.

       --show-keyring
              Display  the  keyring  name  at the head of key listings to show
              which keyring a given key resides on. This option is deprecated:
              use --list-options [no-]show-keyring instead.

       --always-trust
              Identical to --trust-model always. This option is deprecated.

       --show-notation
       --no-show-notation
              Show  signature  notations  in the --list-signatures or --check-
              signatures listings as well as when verifying a signature with a
              notation in it. These options are deprecated. Use --list-options
              [no-]show-notation  and/or  --verify-options  [no-]show-notation
              instead.

       --show-policy-url
       --no-show-policy-url
              Show  policy URLs in the --list-signatures or --check-signatures
              listings as well as when verifying a signature with a policy URL
              in   it.   These  options  are  deprecated.  Use  --list-options
              [no-]show-policy-url and/or  --verify-options  [no-]show-policy-
              url instead.

EXAMPLES
       gpg -se -r Bob file
              sign and encrypt for user Bob

       gpg --clear-sign file
              make a cleartext signature

       gpg -sb file
              make a detached signature

       gpg -u 0x12345678 -sb file
              make a detached signature with the key 0x12345678

       gpg --list-keys user_ID
              show keys

       gpg --fingerprint user_ID
              show fingerprint

       gpg --verify pgpfile
       gpg --verify sigfile [datafile]
              Verify  the signature of the file but do not output the data un-
              less requested.  The second form is  used  for  detached  signa-
              tures, where sigfile is the detached signature (either ASCII ar-
              mored or binary) and datafile are the signed data;  if  this  is
              not  given, the name of the file holding the signed data is con-
              structed by cutting off the extension (".asc" or ".sig") of sig-
              file  or  by  asking  the  user for the filename.  If the option
              --output is also used the signed data is  written  to  the  file
              specified by that option; use - to write the signed data to std-
              out.

HOW TO SPECIFY A USER ID
       There are different ways to specify a user ID to GnuPG.  Some  of  them
       are only valid for gpg others are only good for gpgsm.  Here is the en-
       tire list of ways to specify a key:

       By key Id.
              This format is deduced from the length of  the  string  and  its
              content or 0x prefix. The key Id of an X.509 certificate are the
              low 64 bits of its SHA-1 fingerprint.  The use  of  key  Ids  is
              just  a  shortcut,  for all automated processing the fingerprint
              should be used.

              When using gpg an exclamation mark (!) may be appended to  force
              using  the specified primary or secondary key and not to try and
              calculate which primary or secondary key to use.

              The last four lines of the example give the key ID in their long
              form as internally used by the OpenPGP protocol. You can see the
              long key ID using the option --with-colons.

         234567C4
         0F34E556E
         01347A56A
         0xAB123456

         234AABBCC34567C4
         0F323456784E56EAB
         01AB3FED1347A5612
         0x234AABBCC34567C4

       By fingerprint.
              This format is deduced from the length of  the  string  and  its
              content  or  the 0x prefix.  Note, that only the 20 byte version
              fingerprint is available with gpgsm (i.e. the SHA-1 hash of  the
              certificate).

              When  using gpg an exclamation mark (!) may be appended to force
              using the specified primary or secondary key and not to try  and
              calculate which primary or secondary key to use.

              The  best  way  to specify a key Id is by using the fingerprint.
              This avoids any ambiguities in case that  there  are  duplicated
              key IDs.

         1234343434343434C434343434343434
         123434343434343C3434343434343734349A3434
         0E12343434343434343434EAB3484343434343434
         0xE12343434343434343434EAB3484343434343434

       gpgsm  also  accepts colons between each pair of hexadecimal digits be-
       cause this is the de-facto standard on how  to  present  X.509  finger-
       prints.   gpg  also allows the use of the space separated SHA-1 finger-
       print as printed by the key listing commands.

       By exact match on OpenPGP user ID.
              This is denoted by a leading equal sign. It does not make  sense
              for X.509 certificates.

         =Heinrich Heine <heinrichh@uni-duesseldorf.de>

       By exact match on an email address.
              This  is  indicated  by enclosing the email address in the usual
              way with left and right angles.

         <heinrichh@uni-duesseldorf.de>

       By partial match on an email address.
              This is indicated by prefixing the  search  string  with  an  @.
              This uses a substring search but considers only the mail address
              (i.e. inside the angle brackets).

         @heinrichh

       By exact match on the subject's DN.
              This is indicated by a leading slash, directly followed  by  the
              RFC-2253 encoded DN of the subject.  Note that you can't use the
              string printed by gpgsm --list-keys because that  one  has  been
              reordered and modified for better readability; use --with-colons
              to print the raw (but standard escaped) RFC-2253 string.

         /CN=Heinrich Heine,O=Poets,L=Paris,C=FR

       By exact match on the issuer's DN.
              This is indicated by a leading hash mark, directly followed by a
              slash  and  then directly followed by the RFC-2253 encoded DN of
              the issuer.  This should return the Root  cert  of  the  issuer.
              See note above.

         #/CN=Root Cert,O=Poets,L=Paris,C=FR

       By exact match on serial number and issuer's DN.
              This  is  indicated  by a hash mark, followed by the hexadecimal
              representation of the serial number, then followed  by  a  slash
              and the RFC-2253 encoded DN of the issuer. See note above.

         #4F03/CN=Root Cert,O=Poets,L=Paris,C=FR

       By keygrip.
              This  is indicated by an ampersand followed by the 40 hex digits
              of a keygrip.  gpgsm prints the keygrip when using  the  command
              --dump-cert.

         &D75F22C3F86E355877348498CDC92BD21010A480

       By substring match.
              This is the default mode but applications may want to explicitly
              indicate this by putting the asterisk in front.   Match  is  not
              case sensitive.

         Heine
         *Heine

       . and + prefixes
              These prefixes are reserved for looking up mails anchored at the
              end and for a word search mode.  They are  not  yet  implemented
              and using them is undefined.

              Please  note  that we have reused the hash mark identifier which
              was used in old GnuPG versions to indicate the so called  local-
              id.  It is not anymore used and there should be no conflict when
              used with X.509 stuff.

              Using the RFC-2253 format of DNs has the drawback that it is not
              possible  to  map them back to the original encoding, however we
              don't have to do this because our key database stores  this  en-
              coding as meta data.

FILTER EXPRESSIONS
       The  options  --import-filter  and --export-filter use expressions with
       this syntax (square brackets indicate an optional part and curly braces
       a repetition, white space between the elements are allowed):

                  [lc] {[{flag}] PROPNAME op VALUE [lc]}

       The  name  of a property (PROPNAME) may only consist of letters, digits
       and underscores.  The description for the filter type  describes  which
       properties  are defined.  If an undefined property is used it evaluates
       to the empty string.  Unless otherwise noted, the VALUE must always  be
       given  and  may not be the empty string.  No quoting is defined for the
       value, thus the value may not contain the strings && or ||,  which  are
       used  as  logical connection operators.  The flag -- can be used to re-
       move this restriction.

       Numerical values are computed as long int; standard C notation applies.
       lc  is  the logical connection operator; either && for a conjunction or
       || for a disjunction.  A conjunction is assumed at the begin of an  ex-
       pression.   Conjunctions  have higher precedence than disjunctions.  If
       VALUE starts with one of the characters used in any op  a  space  after
       the op is required.

       The supported operators (op) are:

       =~     Substring must match.

       !~     Substring must not match.

       =      The full string must match.

       <>     The full string must not match.

       ==     The numerical value must match.

       !=     The numerical value must not match.

       <=     The numerical value of the field must be LE than the value.

       <      The numerical value of the field must be LT than the value.

       >      The numerical value of the field must be GT than the value.

       >=     The numerical value of the field must be GE than the value.

       -le    The  string  value  of  the field must be less or equal than the
              value.

       -lt    The string value of the field must be less than the value.

       -gt    The string value of the field must be greater than the value.

       -ge    The string value of the field must be greater or equal than  the
              value.

       -n     True if value is not empty (no value allowed).

       -z     True if value is empty (no value allowed).

       -t     Alias for "PROPNAME != 0" (no value allowed).

       -f     Alias for "PROPNAME == 0" (no value allowed).

       Values for flag must be space separated.  The supported flags are:

       --     VALUE spans to the end of the expression.

       -c     The string match in this part is done case-sensitive.

       -t     Leading and trailing spaces are not removed from VALUE.  The op-
              tional single space after op is here required.

       The filter options concatenate several specifications for a  filter  of
       the same type.  For example the four options in this example:

                 --import-filter keep-uid="uid =~ Alfa"
                 --import-filter keep-uid="&& uid !~ Test"
                 --import-filter keep-uid="|| uid =~ Alpha"
                 --import-filter keep-uid="uid !~ Test"

       which is equivalent to

                 --import-filter \
                  keep-uid="uid =~ Alfa" && uid !~ Test" || uid =~ Alpha" && "uid !~ Test"

       imports  only  the  user  ids of a key containing the strings "Alfa" or
       "Alpha" but not the string "test".

TRUST VALUES
       Trust values are used to indicate ownertrust and validity of  keys  and
       user IDs.  They are displayed with letters or strings:

       -
       unknown
              No ownertrust assigned / not yet calculated.

       e
       expired

              Trust calculation has failed; probably due to an expired key.

       q
       undefined, undef
              Not enough information for calculation.

       n
       never  Never trust this key.

       m
       marginal
              Marginally trusted.

       f
       full   Fully trusted.

       u
       ultimate
              Ultimately trusted.

       r
       revoked
              For validity only: the key or the user ID has been revoked.

       ?
       err    The program encountered an unknown trust value.

FILES
       There are a few configuration files to control certain aspects of gpg's
       operation. Unless noted, they are expected in the current  home  direc-
       tory (see: [option --homedir]).

       gpg.conf
              This  is the standard configuration file read by gpg on startup.
              It may contain any valid long option; the leading two dashes may
              not  be entered and the option may not be abbreviated.  This de-
              fault name may be changed on the command line (see:  [gpg-option
              --options]).  You should backup this file.

       Note that on larger installations, it is useful to put predefined files
       into the directory '/etc/skel/.gnupg' so that newly created users start
       up  with  a  working  configuration.  For existing users a small helper
       script is provided to create these files (see: [addgnupghome]).

       For internal purposes gpg creates and maintains a few other files; They
       all live in the current home directory (see: [option --homedir]).  Only
       the gpg program may modify these files.

       ~/.gnupg
              This is the default home directory which is used if neither  the
              environment  variable  GNUPGHOME  nor  the  option  --homedir is
              given.

       ~/.gnupg/pubring.gpg
              The public keyring using a legacy  format.   You  should  backup
              this file.

              If  this  file  is not available, gpg defaults to the new keybox
              format and creates a file 'pubring.kbx' unless that file already
              exists  in  which  case  that file will also be used for OpenPGP
              keys.

              Note that in the case that both files, 'pubring.gpg'  and  'pub-
              ring.kbx'  exists but the latter has no OpenPGP keys, the legacy
              file 'pubring.gpg' will be used.  Take care: GnuPG versions  be-
              fore  2.1 will always use the file 'pubring.gpg' because they do
              not know about the new keybox format. In the case that you  have
              to  use  GnuPG 1.4 to decrypt archived data you should keep this
              file.

       ~/.gnupg/pubring.gpg.lock
              The lock file for the public keyring.

       ~/.gnupg/pubring.kbx
              The public keyring using the new keybox format.   This  file  is
              shared  with gpgsm.  You should backup this file.  See above for
              the relation between this file and it predecessor.

              To convert an existing 'pubring.gpg' file to the keybox  format,
              you  first  backup  the  ownertrust  values,  then  rename 'pub-
              ring.gpg' to 'publickeys.backup', so it wont  be  recognized  by
              any  GnuPG  version,  run  import,  and finally restore the own-
              ertrust values:

         $ cd ~/.gnupg
         $ gpg --export-ownertrust >otrust.lst
         $ mv pubring.gpg publickeys.backup
         $ gpg --import-options restore --import publickeys.backups
         $ gpg --import-ownertrust otrust.lst

       ~/.gnupg/pubring.kbx.lock
              The lock file for 'pubring.kbx'.

       ~/.gnupg/secring.gpg
              The legacy secret keyring as used by GnuPG versions before  2.1.
              It  is not used by GnuPG 2.1 and later.  You may want to keep it
              in case you have to use GnuPG 1.4 to decrypt archived data.

       ~/.gnupg/secring.gpg.lock
              The lock file for the legacy secret keyring.

       ~/.gnupg/.gpg-v21-migrated
              File indicating that a migration to GnuPG 2.1 has been done.

       ~/.gnupg/trustdb.gpg
              The trust database.  There is no need to backup this file; it is
              better  to  backup the ownertrust values (see: [option --export-
              ownertrust]).

       ~/.gnupg/trustdb.gpg.lock
              The lock file for the trust database.

       ~/.gnupg/random_seed
              A file used to preserve the state of the internal random pool.

       ~/.gnupg/openpgp-revocs.d/
              This is the directory where gpg stores pre-generated  revocation
              certificates.   The file name corresponds to the OpenPGP finger-
              print of the respective key.  It is suggested  to  backup  those
              certificates and if the primary private key is not stored on the
              disk to move them to an external storage device.  Anyone who can
              access  theses  files  is  able to revoke the corresponding key.
              You may want to print them out.  You should backup all files  in
              this directory and take care to keep this backup closed away.

       Operation is further controlled by a few environment variables:

       HOME   Used to locate the default home directory.

       GNUPGHOME
              If set directory used instead of "~/.gnupg".

       GPG_AGENT_INFO
              This  variable is obsolete; it was used by GnuPG versions before
              2.1.

       PINENTRY_USER_DATA
              This value is passed via gpg-agent to pinentry.  It is useful to
              convey extra information to a custom pinentry.

       COLUMNS
       LINES  Used to size some displays to the full size of the screen.

       LANGUAGE
              Apart  from  its  use  by  GNU, it is used in the W32 version to
              override the language selection done through the  Registry.   If
              used  and  set  to a valid and available language name (langid),
              the   file    with    the    translation    is    loaded    from
              gpgdir/gnupg.nls/langid.mo.  Here gpgdir is the directory out of
              which the gpg binary has been loaded.  If it can't be loaded the
              Registry  is  tried and as last resort the native Windows locale
              system is used.

       GNUPG_BUILD_ROOT
              This variable is only used by the regression  test  suite  as  a
              helper  under operating systems without proper support to figure
              out the name of a process' text file.

       GNUPG_EXEC_DEBUG_FLAGS
              This variable allows to enable diagnostics for  process  manage-
              ment.   A numeric decimal value is expected.  Bit 0 enables gen-
              eral diagnostics, bit 1 enables certain warnings on Windows.

       When calling the gpg-agent component gpg sends  a  set  of  environment
       variables to gpg-agent.  The names of these variables can be listed us-
       ing the command:

           gpg-connect-agent 'getinfo std_env_names' /bye | awk '$1=="D" {print $2}'

BUGS
       On older systems this program should be installed as setuid(root). This
       is  necessary  to  lock memory pages. Locking memory pages prevents the
       operating  system  from  writing  memory  pages  (which   may   contain
       passphrases or other sensitive material) to disk. If you get no warning
       message about insecure memory your operating  system  supports  locking
       without being root. The program drops root privileges as soon as locked
       memory is allocated.

       Note also that some systems (especially laptops) have  the  ability  to
       ``suspend  to  disk''  (also known as ``safe sleep'' or ``hibernate'').
       This writes all memory to disk before going into a low  power  or  even
       powered off mode.  Unless measures are taken in the operating system to
       protect the saved memory, passphrases or other sensitive  material  may
       be recoverable from it later.

       Before  you  report  a bug you should first search the mailing list ar-
       chives for similar problems and second check whether such a bug has al-
       ready been reported to our bug tracker at https://bugs.gnupg.org.

SEE ALSO
       gpgv(1), gpgsm(1), gpg-agent(1)

       The full documentation for this tool is maintained as a Texinfo manual.
       If GnuPG and the info program are properly installed at your site,  the
       command

         info gnupg

       should  give  you access to the complete manual including a menu struc-
       ture and an index.

GnuPG 2.2.40                      2022-10-07                            GPG(1)

Czas wygenerowania: 0.00032 sek.


Created with the man page lookup class by Andrew Collington.
Based on a C man page viewer by Vadim Pavlov
Unicode soft-hyphen fix (as used by RedHat) by Dan Edwards
Some optimisations by Eli Argon
Caching idea and code contribution by James Richardson

Copyright © 2003-2025 Linux.pl
Hosted by Hosting Linux.pl