I am using openssl to encrypt a zip'd file and attach it to an email. My
problem is that after Outlook finishes decrypting the attachement I am
unable to open it. If I don't encrypt it all is well.
Here is my code:
echo "Content-Type: application/x-zip-compressed;" >
/users/email/attach.txt
echo " name=\""$f_name"\"" >> /users/email/attach.txt
echo "Content-Transfer-Encoding: base64" >> /users/email/attach.txt
echo "Content-Disposition: attachment;" >> /users/email/attach.txt
echo " filename=\""$f_name"\"" >> /users/email/attach.txt
/opt/apache/ssl/bin/openssl base64 -in /users/ali/$f_name >>
/users/email/atta
ch.txt
/opt/apache/ssl/bin/openssl smime -encrypt \
-in /users/email/attach.txt \
/users/email/Trob.pem \
| /usr/sbin/sendmail (e-mail address removed)