New option --recipient-file

Werner Koch wk at
Wed Jul 6 16:01:56 CEST 2016


I just pushed the code for a new feature.  With 

  gpg --recipient-file FILENAME -e


  gpg -f FILENAME -e

it is now possible to bypass the keyring and take the public key
directly from a file.  That file may be a binary or an ascii armored key
and only the first keyblock from that file is used.  A key specified
with this option is always fully trusted.

This option may be mixed with the standard -r options.
--hidden-recipient-file (or -F) is also available.

To futher assist some use cases the option


has also been implemented.  This is similar to

  --no-default-keyring --keyring /dev/null

but portable to Windows and also ignores any keyring specified (command
line or config file).



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
 /* Join us at OpenPGP.conf  <> */

More information about the Gnupg-devel mailing list