Files
go-msgauth/cmd/dkim-keygen
Andrew AyerandSimon Ser 4ecd9a7db2 dkim: accept RSA keys in both raw and SPKI form
RFC 6376 is inconsistent about whether RSA public keys should be
formatted as RSAPublicKey or SubjectPublicKeyInfo.  Erratum 3017
(https://www.rfc-editor.org/errata/eid3017) proposes allowing both.

This commit changes the verifier to accept both formats, and changes
dkim-keygen to generate keys in SubjectPublicKeyInfo format for
consistency with other implementations including opendkim, Gmail,
and Fastmail.

Closes: https://github.com/emersion/go-msgauth/issues/43
2021-03-15 18:08:01 +01:00
..