Skip to content

Handle "Primary key is expired" error when verifying signing key #5915

@sosnovsky

Description

@sosnovsky

I noticed many Primary key is expired errors reported from browser extension.
Seems like they're not handled:

Error: Primary key is expired
at PublicKey.verifyPrimaryKey (chrome-extension://EXTENSION_ID/lib/openpgp.js:18218:15)
at async PublicKey.getSigningKey (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/lib/openpgp.js:18082:7)
at async chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/lib/openpgp.js:20148:11

### Catch.reportErr calling stack ###
# at Catch.formatExceptionForReport (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:287:94)
# at Catch.onErrorInternalHandler (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:85:33)
# at Catch.reportErr (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:101:22)
# at OpenPGPKey.verify (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:5850:27)
# at async MsgUtil.verifyDetached (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:4918:20)
# at async verify (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:13771:40)
# at async MessageRenderer.processMessageWithDetachedSignatureFromRaw (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:13777:49)
# at async RenderRelay.processor (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:13697:30)
#
# url: https://mail.google.com/mail/u/0/#inbox
#
######################
Error: Primary key is expired
at PublicKey.verifyPrimaryKey (chrome-extension://EXTENSION_ID/lib/openpgp.js:18218:15)
at async PublicKey.getSigningKey (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/lib/openpgp.js:18082:7)
at async chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/lib/openpgp.js:20148:11

### Catch.reportErr calling stack ###
# at Catch.formatExceptionForReport (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:287:94)
# at Catch.onErrorInternalHandler (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:85:33)
# at Catch.reportErr (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:101:22)
# at OpenPGPKey.verify (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:5850:27)
# at async MsgUtil.decryptMessage (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:4981:35)
# at async MessageRenderer.renderCryptoMessage (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:13801:28)
# at async MessageRenderer.processEncryptedMsgAttachment (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:13870:28)
# at async RenderRelay.processor (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/content_scripts/webmail_bundle.js:13697:30)
#
######################

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions