Problem transporting signed emails

Edwin Groothuis edwin at mavetju.org
Sun May 9 05:10:48 PDT 2004


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

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin at mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/


More information about the freebsd-questions mailing list