Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

SMTP with SSL

by N Watkins (Initiate)
on Jan 08, 2002 at 14:08 UTC ( [id://137086]=perlquestion: print w/replies, xml ) Need Help??

N Watkins has asked for the wisdom of the Perl Monks concerning the following question:

This is probably a really easy question, so I apologise in advance, as my Perl knowledge is fairly limited at present. I'd like to know how to use SSL to encrypt emails generated with Perl? Currently using ActivePerl 5.6.1.6.29 on Windows 2000.

Replies are listed 'Best First'.
Re: SMTP with SSL
by giulienk (Curate) on Jan 08, 2002 at 15:13 UTC
    Looking at CPAN, depending on your needs, you should take a look at IO::Socket::SSL for a SSL connection or to Crypt::OpenPGP to encrypt e-mail before sending them.

    gkinueliileunikg

Re: SMTP with SSL
by jebe68 (Initiate) on Jan 08, 2002 at 20:26 UTC
    Do you need to crypt the text and then just send it with a "standrd" smtp ? Or do you need to write your own smtp ? If the first, any crypt or pgp module in CPAN would be fine, otherwise IO::Socket::SSL may be usefull. I used it to write a SSL client/server thngy, but still have problems using auto-generated x509 certificates... Hope this helps... Matteo
Re: SMTP with SSL
by dhable (Monk) on Jan 08, 2002 at 23:30 UTC
    Your talking about two different things here. SSL is the Secure Socket Layer. In the scope of the OSI network model, SSL will encrypt the socket level communications between the sender and the reciever. Thus, both sides would have to be able to use SSL to communicate. Once the message arrives at the other end, the message is stored in a plain text format.

    If you want to keep the messages encypted until they are read (which I'm assuming you want to do), you can use a number of encyption methods to generate a garbage message that contains the orginial message. A popular method is PGP, but alternatives include RC5 and Blowfish. As a side note, the reciever will need to have a public key to unlock your message.

    CPAN should contain modules for using any of the encryption methods above. Good luck!
Re: SMTP with SSL
by Anonymous Monk on Jan 30, 2004 at 13:28 UTC
    But if the Server uses both SSL and Authentication. How to do that ?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://137086]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-17 21:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found