Skip to content

verifyAllUsers() returns userID error for keys that contains image data #1636

@martgil

Description

@martgil
  • OpenPGP.js version: "openpgp": "^5.8.0"
  • Affected platform (Browser or Node.js version): Node.js (I haven't tried for the Browser version/dist)

Description:

During my testing, OpenPGP.js verifyAllUsers() fails to work and returns TypeError: Cannot read properties of null (reading 'userID') when parsing a public key/key pair that contains image data. eg image added with gpg's addphoto command.

image

image

File to use:
sample.pub.txt

Steps to reproduce:

const key = `$armored_key`;
const k = openpgp.readKey({armoredKey: key});
const vk = (await k).verifyAllUsers(k);
console.log(vk);

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