Hi all
I am having problem with decrypting/encrypting a signed messages with openssl cms. I created firstly a signed message with openssl cms C:\usr\local\ssl\ca>openssl cms -sign -in data.txt -signer certs/local.cer -out 1.sign -outform DER -nodetach -inkey private/localkey.pem a signed message 1.sign was created here. then i encrypted this message with a certificate from a partner C:\usr\local\ssl\ca>openssl cms -encrypt -in 1.sign -out 2.encrypt -outform der certs/partner.cer the signed message was encrypted and saved as 2.encrypt now i have the problem, if i decrypt the message 2.encrypt to a file, for example C:\usr\local\ssl\ca>openssl cms -decrypt -in 2.encrypt -inform der -out 2.sign - recip certs/partner.cer -inkey private/partnerkey.pem i get a file 2.sign which should be identical with 1.sign, but they are not, actually. the content of 2.sign was changed and shorter als content of 1.sign. so that i cannot verify the 2.sign: 3056:error:0D06B08E:asn1 encoding routines:ASN1_D2I_READ_BIO:not enough data can anyone help me to solve this problem? thanks verena -- View this message in context: http://old.nabble.com/CMS%2C-decrypted-content-does-not-match-the-original-tp30606265p30606265.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org