delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/14/05:56:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: <hauser AT acm DOT org>
From: "Ralf Hauser" <ralfhauser AT gmx DOT ch>
To: <cygwin AT cygwin DOT com>
Cc: <steve AT openssl DOT org>
Subject: "contents altered after message signed" when sending openssl smime signed messages - ssmtp appears to add extra newlines
Date: Mon, 14 Jul 2003 11:57:22 +0200
Message-ID: <KJEOKFJJEDMIGBEEJCHCEEFDOIAA.ralfhauser@gmx.ch>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal

Hi,

as per http://www.openssl.org/docs/apps/smime.html#, 1) I did
<<openssl smime -sign -in message.txt -text -signer mycert.pem -from
hauser AT acm DOT org -to ralfhauser AT gmx DOT ch -subject "Signed message from cygwin" |
/usr/sbin/sendmail ralfhauser AT gmx DOT ch>>

Under Linux (Suse) that works perfectly.
When trying the same under my cygwin installation where sendmail is a
symbolic link on ssmtp, I get the above error message and it appears that
after each line an empty line gets added.

When also encrypting with 2) <<openssl smime -sign -in
message.txt -text -signer mycert.pem | openssl smime -encrypt -from
hauser AT acm DOT org -to ralfhauser AT gmx DOT ch -subject "Signed message from
cygwin" -des3 user.pem | /usr/sbin/ssmtp ralfhauser AT gmx DOT ch>>, it works
perfectly; probably the encoding for the body encryption is capable of
dropping the extra lines.

Due to that I thought that replacing -text in 1) with "-binary" may cause
the same encoding to take place as with encryption, but unfortunately, this
only made it worse and also swallowed the first line.

Any hints how to fix this would be highly appreciated.

	Rgds Ralf

P.S.: My cygwin is configured to use Unix Linefeeds


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019