Dino,   I created the certificate in windows and got error under both .Net 
2/4,  My environment is Windows XP SP3. Would you send your self-signed 
certificate to me? ----- 原文 ----- 发件人: Dino Viehland 主 题: Re: [IronPython] ssl 
server mode issue时 间: 2010年4月27日  4:02:34<!--[if gte mso 9]>
 <o:shapedefaults v:ext="edit" spidmax="1026"  />
<![endif]--><!--[if gte mso 9]>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"  />
 </o:shapelayout><![endif]-->
That’s working for me as well.&nbsp; I went ahead and added a do_GET
implementation to the ProxyHandler class:
&nbsp;
&nbsp;&nbsp;&nbsp; def do_GET(self):
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.send_response(200)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.send_header("Content-type",
"text/html")
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.end_headers()
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stdout = sys.stdout
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.wfile.write('&lt;html&gt;&lt;body&gt;hi' +
str(datetime.datetime.now()) + '&lt;/body&gt;&lt;/html&gt;')
&nbsp;
I generated the key by doing:
&nbsp;
C:\OpenSSL\bin\openssl.exe req -new -x509 -days 365 -nodes -out
cert.pem -keyout cert.pem
&nbsp;
And I’m able to successfully able to make requests to both
CPython and IronPython from IE and FireFox.
&nbsp;
So I guess the next possible questions would be what version of
Windows you’re running on and did you create the certificate on Windows (maybe
there’s some difference in OpenSSL between the two platforms?)&nbsp; &nbsp;Also 
are you
using the .NET 2 version or the .NET 4 version?&nbsp; Also does my end-to-end 
repro
demonstrate the problem for you or are you doing something different?
&nbsp;
&nbsp;



From: users-boun...@lists.ironpython.com
[mailto:users-boun...@lists.ironpython.com] On Behalf Of 
qiuyin...@sohu.comsent: Thursday, April 22, 2010 5:40 PMTo: Discussion of 
IronPythonSubject: Re: [IronPython] ssl server mode issue


&nbsp;
I generated certificate as the
instruction of http://docs.python.org/library/ssl.html:
openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to