[IronPython] ssl server mode issue
qiuyingbo at sohu.com
qiuyingbo at sohu.com
Tue Apr 27 02:51:59 CEST 2010
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. I went ahead and added a do_GET
implementation to the ProxyHandler class:
def do_GET(self):
self.send_response(200)
self.send_header("Content-type",
"text/html")
self.end_headers()
stdout = sys.stdout
self.wfile.write('<html><body>hi' +
str(datetime.datetime.now()) + '</body></html>')
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?) Also are you
using the .NET 2 version or the .NET 4 version? 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