Skip to content

Commit 422787f

Browse files
authored
Fix GPG verification with reformatted keys (#748)
Allow signature verification to succeed when public keys have been reformatted by enabling allowInsecureVerificationWithReformattedKeys in the OpenPGP config.
1 parent 36b6b74 commit 422787f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pgp.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ export async function verifySignature(
6868
message,
6969
signature,
7070
verificationKeys: publicKeys,
71+
config: {
72+
// Rational https://github.com/coder/vscode-coder/pull/748#issuecomment-3789538490
73+
allowInsecureVerificationWithReformattedKeys: true,
74+
},
7175
});
7276
for await (const _ of verificationResult.data) {
7377
// The docs indicate this data must be consumed; it triggers the

0 commit comments

Comments
 (0)