RE: Localhost client-server simple ssl socket test program problems

2011-12-16 Thread Yang Chun-Kai
> To: python-list@python.org > From: li...@cheimes.de > Subject: Re: Localhost client-server simple ssl socket test program problems > Date: Thu, 15 Dec 2011 20:45:43 +0100 > > Am 15.12.2011 20:09, schrieb Yang Chun-Kai: > > Server side error: > > &g

RE: Localhost client-server simple ssl socket test program problems

2011-12-15 Thread Yang Chun-Kai
hanks. Kay > To: python-list@python.org > From: li...@cheimes.de > Subject: Re: Localhost client-server simple ssl socket test program problems > Date: Thu, 15 Dec 2011 21:19:14 +0100 > > Am 15.12.2011 21:09, schrieb Yang Chun-Kai: > > Thanks for tips. > > >

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

2011-12-15 Thread Chris Angelico
On Fri, Dec 16, 2011 at 6:24 AM, Alexander wrote: > 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? That's bind() on the server and connect() on the client - the normal way to do thing

Re: Localhost client-server simple ssl socket test program problems

2011-12-15 Thread Christian Heimes
Am 15.12.2011 21:09, schrieb Yang Chun-Kai: > Thanks for tips. > > But I dont understand one thing is if Python's SSL lib doesn't support > encrypted private keys for sockets. > > Then why should we "encrypt" the private key with "openssl rsa -in > /etc/home/ckyang/PHA/testsslsocket/mypha.key -ou

RE: Localhost client-server simple ssl socket test program problems

2011-12-15 Thread Yang Chun-Kai
g/PHA/testsslsocket/mypha-nopasswd.key" again? Shouldn't that be decrypted? And also this solution is not the right one, I use mypha-nopasswd.key replace the original one, still not work. So sad. But thanks. ^ ^ Kay > To: python-list@python.org > From: li...@cheimes.de > Subject: Re: Lo

Re: Localhost client-server simple ssl socket test program problems

2011-12-15 Thread Christian Heimes
Am 15.12.2011 20:09, schrieb Yang Chun-Kai: > Server side error: > > File "views.py", line 17, in > connstream = ssl.wrap_socket(newsocket, server_side=True, > certfile="/etc/home/ckyang/PHA/testsslsocket/mypha.crt", > keyfile="/etc/home/ckyang/PHA/testsslsocket/mypha.key", > ssl_version=ssl.PROT

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

2011-12-15 Thread Alexander
2011/12/15 Yang Chun-Kai > Hello,everyone!! > > I am writing a simple ssl client-server test program on my personal laptop. > > And I encounter some problems with my simple programs. > > Please give me some helps. > > --

Localhost client-server simple ssl socket test program problems

2011-12-15 Thread Yang Chun-Kai
Hello,everyone!! I am writing a simple ssl client-server test program on my personal laptop. And I encounter some problems with my simple programs. Please give me some helps.---