Using Python SSL

Cary O'Brien cobrien at Radix.Net
Thu Jan 18 12:52:40 EST 2001


In article <93nt06$4eu$1 at nnrp1.deja.com>,  <skreech at my-deja.com> wrote:
>I'm fairly experienced with using sockets in
>Python... I've written two or three small programs
>using sockets, nothing major. Python's
>documentation on sockets is very good, and socket
>programming in general is well documented too
>(Beej's socket programming guide for example).
>I've wanted to try implimenting SSL in the socket
>programs by trying to use mxCrypto and Python's
>SSL in the socket module. Not only have I been
>unsuccessful trying to find out how to use
>socket.SSL from the sourcecode and httplib.py, but
>I've been even less successful in looking for
>documentation on the internet on how to use SSL in
>Python.
>

One alternative is to punt the SSL handling to
something like stunnel (www.stunnel.org).  But
this doesn't teach you as much as doing you own
stuff.

You could also use it for testing.  It runs in
both client and server mode.

[snip]

-- cary



More information about the Python-list mailing list