This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
"contents altered after message signed" when sending openssl smime signed messages - ssmtp appears to add extra newlines
- From: "Ralf Hauser" <ralfhauser at gmx dot ch>
- To: <cygwin at cygwin dot com>
- Cc: <steve at openssl dot org>
- Date: Mon, 14 Jul 2003 11:57:22 +0200
- Subject: "contents altered after message signed" when sending openssl smime signed messages - ssmtp appears to add extra newlines
- Reply-to: <hauser at acm dot org>
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@acm.org -to ralfhauser@gmx.ch -subject "Signed message from cygwin" |
/usr/sbin/sendmail ralfhauser@gmx.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@acm.org -to ralfhauser@gmx.ch -subject "Signed message from
cygwin" -des3 user.pem | /usr/sbin/ssmtp ralfhauser@gmx.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/