Sending encrypted attachments

  • Thread starter Lanwench [MVP - Exchange]
  • Start date
J

Joseph Meehan

Lanwench said:
Hi - please fix your system date/time.

Depending on where he is his date may be correct. Now there is still
the question of generous cross posting.
 
D

Dave Anderson

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top