[Tutor] Localhost client-server simple ssl socket test program problems

George Nyoro geonyoro at gmail.com
Fri Dec 16 06:31:20 CET 2011


>You're trying to connect to the same port on
>localhost as a client and a
>server? I don't know for certain but I don't
>think that should work.
>Two computers?
--
>Alexander

it should work. I did  short tutorial on this like a month ago and it
worked. The only difference is that in mine it didn't have the part
below which is the source of the problem. Also, in mine, I used "send"
and "recv" though I doubt this makes any difference.


> ssl_sock = ssl.wrap_socket(s,
> ca_certs="/home/ckyang/PHA/testsslsocket/
myCA.crt",
> cert_reqs=ssl.CERT_REQUIRED)
> ssl_sock.connect(("127.0.0.1", 1234))


More information about the Tutor mailing list