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.

Kind regards

Rainer Schäferkordt
________________________________
Analogon Enterprise GmbH
Geschäftsführer: Dr. Rainer Schäferkordt
Neuengammer Hausdeich 511
21037 Hamburg
Tel 040 73509358
Fax 040 73509361
www.analogon.net

Handelsregister HRB 123138
Amtsgericht Hamburg
USt-IdNr: DE283899011

Reply via email to