You have to use something like OpenSSL.
OpenSSL is a powerful SSL/SMIME package. Here is a wrapper that I wrote to integrate OpenSSL with MIME::Parser. You will have to hunt out openssl on the net, get it set up and configured (the right certs) which can be a bit of a bitch. Once you do however with a bit of configuration the below modle will enable you to open and authenticate. Modifying the module to handle decryption should be realtively easy, and modifying to enable writing a signed/encrypted mail should also not be so difficult.
Unfortunately at this point I dont have time to explain how to use it, but it shouldnt be too hard to figure out.
If you have any substantial question then email me or post your questions and ill _try_ to help, but my time is limited.
Good luck!
|