[PYTHON-CRYPTO] Execute connect_ssl() twice to connect - is this right?
Latitia Haskins
latitia.haskins at GMAIL.COM
Thu Mar 1 20:41:33 CET 2007
My server is based on the demo echod-async.py (echo.py as the client). The
demo currently fails because of bad certificates, but the basic idea looks
like it still applies.
I'm not sure what you find strange about the code, but I want to be very
specific in the context version and cipher combination that I use, so I
initialize some things that I may not have to otherwise.
In my code, if you replace <server.home.com> with localhost and setup a
client before accepting any ssl connections, it should work (in other words,
the client socket needs to be connected before even trying to accept any ssl
connections from the client). Of course, all of this is what makes me think
that I'm simply missing something.
On 2/28/07, Heikki Toivonen <heikki at osafoundation.org> wrote:
>
> Latitia Haskins wrote:
> > I would like to verify some behavior that I observe in my code when I
> > connect a client and server using M2Crypto. I am finding that I have to
>
> I find your code very strange, and the server code does not work for me
> at all. I would advice you to take a look at the test_ssl.py file for
> some guaranteed to work client samples. After that take a look at the
> demos for some more samples, including server samples, but keep in mind
> that the demos may no longer work.
>
> --
> Heikki Toivonen
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-crypto/attachments/20070301/316a966f/attachment.html>
More information about the python-crypto
mailing list