Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config.allowInsecureVerificationWithReformattedKeys #1422

Merged
merged 1 commit into from Oct 18, 2021

Conversation

larabr
Copy link
Collaborator

@larabr larabr commented Oct 15, 2021

Using openpgp.reformatKey with the default date option would render messages signed with the original key unverifiable by OpenPGP.js v5 (not v4), since the signing key would not be considered valid at the time of signing (due to its self-certification signature being in the future, compared to the message signature creation time).

This PR adds config.allowInsecureVerificationWithReformattedKeys (false by default) to make it possible to still verify such messages with the reformatted key provided the key is valid at the date specified for verification (which defaults to the current time).

To avoid this type of issue with message verification, we recommend to pass the key creation time as date when using reformatKey.

@larabr larabr requested a review from twiss October 15, 2021 20:09
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.

None yet

2 participants