smtp and gpg-signature?
the_frozen at cs-el.no-ip.com
Wed Jan 21 00:37:20 CET 2004
I searched the web for some hours now, but I couldn't find a solution
for my problem.. So I ask here...
The problem: I have to write a small MUA-portion, which has to send a
gpg-signed mail. I have to use C to do this. My program is already able
to send mails, which are multipart and contain the (detached) signature.
But the recipient always reports: BAD signature... To make things a bit
clearer: An example:
From: xxx at yyy.com
To: xxx at yyy.com
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="trennzeile"
Message-Id: <id at yyy.com>
Date: Wed, 21 Jan 2004 00:27:37 +0100
bla bla bla
Content-Type: application/pgp-signature; name=outtext.txt.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
-----END PGP SIGNATURE-----
The above example shows a part of the mail source as received at the
recipient. The signature was generated using the part "bla bla bla" as
clear text entry... I also tried using the header part plus the text or
even the boundary with the headers and the text to generate the
signature.. But to no avail...
What I would like to know is: Which part of the mail code has to be
signed? Or does anybody see any other problems?
Thanks for your help!
More information about the Gnupg-users