On Sun, May 09, 2004 at 11:49:38AM +0100, Matthew Seaman wrote:
> On Sun, May 09, 2004 at 11:57:05AM +1000, Edwin Groothuis wrote:
> > I've been playing with signed emails (S/MIME, OpenSSL etc) but am
> > running into an annoying problem: "openssl smime -sign" signs the
> > text, but it adds ^M's at the end of the lines of the original text.
> > When piping it through to the MTA, somewhere the ^M's are lost and
> > the signature of the file including becomes invalid.
>     % openssl smime -sign -binary ...

I got it. When feeding it to sendmail, it added an empty line after
the content-type line, mostly likely because it was saw the ^M and
didn't interpret it as an empty line. Running the output of openssl
through "tr -d '\r'" and then feeding into sendmail resulted in a
valid signature.


Edwin Groothuis      |            Personal website: http://www.mavetju.org
[EMAIL PROTECTED]    |          Weblog: http://weblog.barnet.com.au/edwin/
[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to