Hi,

meanwhile I tested the latest openssl release (1.0.1f) and my problem 
disappeared.
Please excuse any trouble.

Best regards,
Marco Köllner

From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] 
On Behalf Of Marco Köllner
Sent: Dienstag, 14. Januar 2014 13:00
To: openssl-users@openssl.org
Subject: SMIME CRLF line ending on command line also with -binary flag

Hi,

I'm currently using OpenSSL to encrypt and decrypt SMIME messages.

A new request from our customer is the possibility to prevent storing decrypted 
plaintext on harddisk. My idea is now to decrypt the message on command line 
with "openssl.exe smime" without -out parameter. The response is stored in 
memory for further operations. This works fine for Text files and I'm very 
happy with it. But when working with binary data (e.g.: decrypting packed files 
to reduce network load) I observe changes in decrypted output that results in 
corrupt zip/gzip file.
I've read in documentation that SMIME specification expects CRLF line ending 
and openssl will adapt this by default to every message when -binary flag is 
not set.
In my case I use this flag for encryption and for decryption and this works 
when the output is saved to file by openssl. But on command line output CRLF 
resists regardless of the -binary flag.
The current revision on customer side is 0.9.8k

Any hints or ideas?

Thanks for your help.

Reply via email to