Skip to content

Commit 15c38a1

Browse files
committed
Fix GPG verification with reformatted keys
Allow signature verification to succeed when public keys have been reformatted by enabling allowInsecureVerificationWithReformattedKeys in the OpenPGP config.
1 parent c565edb commit 15c38a1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/pgp.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ export async function verifySignature(
6868
message,
6969
signature,
7070
verificationKeys: publicKeys,
71+
config: {
72+
allowInsecureVerificationWithReformattedKeys: true,
73+
},
7174
});
7275
for await (const _ of verificationResult.data) {
7376
// The docs indicate this data must be consumed; it triggers the

0 commit comments

Comments
 (0)