On Fri, May 24, 2013, Analogon Enterprise wrote:

> Hello everybody
> 
> I have to encrypt a zip file with pkcs7. But when I decrypt again, the zip is 
> corrupted and can't be opened. The zip contains a xml file, and encryption of 
> this file is no problem.
> 
> My command lines are:
> smime -encrypt -in file.zip -out file.p7m -outform DER cert.pem
> and
> smime -decrypt -in file.p7m -out file.zip -inform DER -recip cert.pem -inkey 
> key.pem
> 
> Is there any solution on this? I can't avoid dealing with the zip. The 
> decrypted zip shows only 2/3 of the original length.
> 

Try the -binary option.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to