Skip to content

Fix OpenPGP signature verification and enable PGP/MIME verification with OpenPGP.js - #2172

Open
stefansieg wants to merge 3 commits into
the-djmaze:masterfrom
stefansieg:fix-openpgp-mime-verification
Open

stefansieg wants to merge 3 commits into
the-djmaze:masterfrom
stefansieg:fix-openpgp-mime-verification

Conversation

@stefansieg

Copy link
Copy Markdown

This PR addresses three related issues in OpenPGP signature verification:

  • PGP/MIME signatures cannot be verified using OpenPGP.js without server-side GnuPG.
  • The cryptographic verification result is not evaluated correctly.
  • Signature metadata is lost after verification, causing subsequent verification attempts to fail.

Successfully tested:

  • Valid and invalid inline PGP signatures
  • Valid and invalid PGP/MIME signatures
  • Repeated signature verification
  • Signature verification without an available public key
  • Signing and verification using a newly generated key pair

Server-side GnuPG verification and messages containing multiple signatures were not tested.

LLM-assisted code analysis. Tests were performed manually.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant