Re: [cross post] Why does verification of a detached signature result in a “Message digest did not match” error for OpenPGP.js?
cqcallaw
cqcallaw at brainvitamins.net
Sat Nov 28 21:54:10 CET 2020
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, November 28, 2020 7:38 AM, Ingo Klöcker <kloecker at kde.org> wrote:
> On Freitag, 27. November 2020 23:52:27 CET cqcallaw via Gnupg-users wrote:
> Could be a problem with text mode vs. non-text mode. By default, gpg uses non-
> text mode when signing something. Try adding --textmode to gpg's command line.
>
> > let msg = await openpgp.cleartext.fromText(msg_data);
>
> This is just a wild guess, but fromText() could imply text mode in OpenPGP.js.
Excellent, adding --textmode to gpg's command line resolved the issue.
Thanks!
-Caleb
More information about the Gnupg-users
mailing list