http://qs321.pair.com?node_id=11107083

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

Customer is trying to decrypt the mailfile and write another file with decrypted email data. but getting empty file. below command giving me below error, what could be the possible reasons. this seems to have happened after customer updated there certificate before that same command seemed to be working fine.

#command my $system_output = system("$OPENSSL smime -decrypt -in $mailfile -rec +ip $RECIP_CERT -inkey $RECIP_KEY -passin pass:$RECIP_PASSWORD > ${ma +ilfile}.txt"); &DebugIncoming("SYSTEM OUTPUT : $system_output"); &DebugIncoming("FILE SIZE :". -s ${mailfile}.txt); ##it returning empt +y file.
#Error in detail Error reading S/MIME message 2992:error:0D0D40CD:asn1 encoding routines:SMIME_read_ASN1:invalid mim +e type:crypto/asn1/asn_mime.c:460:type: multipart/alternative
Thank you.