Skip to content

Feature SubPacket options removed when using keys generated with GnuPG 2.3.8+ #468

@arthurvanduynhoven

Description

@arthurvanduynhoven

As of GnuPG 2.3.8 the features subpacket section 30 (under signature packet) is now always adding the reserved flags. Since PGPy does not recognize these flags it removes them and alters the key value making the key unusable later with GnuPG.

Reproduction steps:

  1. Install GnuPG 2.3.8+
  2. Create new key gpg --expert --full-generate-key
  3. Export key gpg --armor --output test-key-2.3.8.asc --export <key id here>
  4. Import key using PGPy my_key = pgpy.PGPKey.from_file(test-key-2.3.8.asc)
  5. Print public key using PGPy str(my_key.pubkey)
  6. Original value is different than the printed public key using PGPy str(my_key.pubkey) != test-key-2.3.8.asc
  7. Try to import the printed key into GnuPG from PGPy and unable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions