[IronPython] ssl server mode issue

qiuyingbo at sohu.com qiuyingbo at sohu.com
Tue Apr 27 02:51:59 CEST 2010

Dino, &nbsp; I created the certificate in windows and got error under both .Net 2/4,&nbsp; 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"  />
That’s working for me as well.&nbsp; I went ahead and added a do_GET
implementation to the ProxyHandler class:
&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",
&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;')
I generated the key by doing:
C:\OpenSSL\bin\openssl.exe req -new -x509 -days 365 -nodes -out
cert.pem -keyout cert.pem
And I’m able to successfully able to make requests to both
CPython and IronPython from IE and FireFox.
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?

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

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100427/0dc6807b/attachment.html>

More information about the Ironpython-users mailing list