GPG clearsigned message lose line breaks when sent to PGP 7.0.3 users.
Fri Jan 18 23:49:01 2002
-----BEGIN PGP SIGNED MESSAGE-----
On Friday 18 January 2002 21:34, David Turley wrote:
> I'm sure this is a problem with PGP, but surely someone on this list
> has experienced it and can help. When I send a clearsigned email to
> PGP 7.0.3 user, the signature will not validate because there are no
> line breaks left in the message. If the recipient tunrs off PGP
> verification in their email client, the message views fine.
> Any ideas?
I guess this is caused by the different ways to encode the line endings:
Unix = <LF>
DOS = <CR><LF>
And you are right. The culprit is PGP. According to the OpenPGP Message
Format Specification (RFC 2440bis-03):
As with binary signatures on text documents, a cleartext signature
is calculated on the text using canonical <CR><LF> line endings.
This means that even if the line endings are represented by <LF> only
(because the message was sent from a *nix system) PGP must treat the
line endings as <CR><LF> line endings.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----