From owner-freebsd-questions@FreeBSD.ORG Sun May 9 05:10:48 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D84D16A4CE for ; Sun, 9 May 2004 05:10:48 -0700 (PDT) Received: from mailout2.barnet.com.au (mailout2.barnet.com.au [218.185.88.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 982BF43D2D for ; Sun, 9 May 2004 05:10:45 -0700 (PDT) (envelope-from edwin@mavetju.org) Received: by mailout2.barnet.com.au (Postfix, from userid 27) id E992CAA61DD; Sun, 9 May 2004 22:10:43 +1000 (EST) X-Viruscan-Id: <409E1FC300017DA351F346@BarNet> Received: from mail2-auth.barnet.com.au (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Authority" (verified OK)) by mail2.barnet.com.au (Postfix) with ESMTP id B8534B29D14; Sun, 9 May 2004 22:10:43 +1000 (EST) Received: from k7.mavetju (unknown [10.10.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Certificate Authority" (verified OK)) by mail2-auth.barnet.com.au (Postfix) with ESMTP id 1244219308; Sun, 9 May 2004 22:10:43 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id E15F161B6; Sun, 9 May 2004 22:10:41 +1000 (EST) Date: Sun, 9 May 2004 22:10:41 +1000 From: Edwin Groothuis To: Matthew Seaman , freebsd-questions@freebsd.org Message-ID: <20040509121041.GE2165@k7.mavetju> Mail-Followup-To: Edwin Groothuis , Matthew Seaman , freebsd-questions@freebsd.org References: <20040509015705.GA48222@k7.mavetju> <20040509104938.GA106@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040509104938.GA106@happy-idiot-talk.infracaninophile.co.uk> User-Agent: Mutt/1.4.2.1i Subject: Re: Problem transporting signed emails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 May 2004 12:10:48 -0000 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@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/