New packet format for OpenPGP

Werner Koch wk at gnupg.org
Sat Feb 27 16:56:23 CET 2021


On Fri, 26 Feb 2021 20:14, jsmith9810--- said:

> I noticed that GnuPG (I'm using v2.2.19) still uses the old format
> OpenPGP packets, when I export my keys, for example.

That is perfectly fine - no need to chnage this.

> Also, is it possible to use a private keyring (secring.gpg) for
> decryption without importing it?

No.  Since 2.1 there is no more secring.gpg; instead gnupg uses one file
per private key.  You find these files under ~/.gnupg/private-keys-v1.d
and their format is stable.  To get the name of the file run

  gpg -k --with-keygrip USERIDORFINGERPRINT

and use the printed keygrip.  Use --with-colons for scripts and see
doc/DETAILS to see how the keygrip is printed.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20210227/38b0bec3/attachment.sig>


More information about the Gnupg-users mailing list