Re: verifying gpg signature under opendkim-lua script
"Robert J. Hansen via Gnupg-users" <[email protected]>
| Newsgroups | gmane.comp.encryption.gpg.user |
|---|---|
| Message-ID | <[email protected]> |
> My ultimate goal is to route emails using gpg's fingerprinting. This is > the first step toward that goal. That is all. Lua doesn't have GPGME bindings, so you'll likely have to do this the error-prone way: fire up GnuPG and verify the signature, after hooking up --status-fd to a file descriptor of your choice. _Do not_ parse the normal console output: only the status-fd output should be used. When verifying a message with gpg --verify, you'll see a message stanza like: [GNUPG:] KEY_CONSIDERED CC11BE7CBBED77B120F37B011DCBDC01B44427C7 0 [GNUPG:] SIG_ID qtBYYa4lfH60IDd2oOz06S6QBjc 2026-01-08 1767855159 [GNUPG:] GOODSIG 1DCBDC01B44427C7 Robert J. Hansen <[email protected]> The first, KEY_CONSIDERED, gives you the full fingerprint. If you then see GOODSIG the message has passed its signature verification and then you can have Lua do what you want with the message. _______________________________________________ Gnupg-users mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gnupg-users
OpenPGP_signature.asc
(application/pgp-signature, 236 B)
-----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQR9jsS4W2/t1sENPHkeepTU6H+R1QUCaV9WZAUDAAAAAAAKCRAeepTU6H+R1elZ AP98E+uLP4gAtcyRlfiy4R717X8Y+/sOTBp13QNYItMtJQD/a5IBj6nrSUoPqzb6oT5EDnsL/vje vjABr85zc4K31gc= =gp0b -----END PGP SIGNATURE-----