Exception on request.shutdown with SimpleSecureHTTPServer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyopenssl (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello, I'm getting the follow exception while trying to run the SimpleSecureHTT
Exception happened during processing of request from ('127.0.0.1', 36615)
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.handle()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
data = self._sock.
Error: [('SSL routines', 'SSL3_READ_BYTES', 'tlsv1 alert unknown ca'), ('SSL routines', 'SSL23_READ', 'ssl handshake failure')]
-------
Traceback (most recent call last):
File "SimpleSecureHT
test()
File "SimpleSecureHT
httpd.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
request.
TypeError: shutdown() takes exactly 0 arguments (1 given)
Here are my system information:
Ubuntu version:
Description: Ubuntu 11.04
Release: 11.04
openssl:
Installed: 0.9.8o-5ubuntu1
Candidate: 0.9.8o-5ubuntu1
Version table:
*** 0.9.8o-5ubuntu1 0
500 http://
100 /var/lib/
python-openssl:
Installed: 0.10-1ubuntu3
Candidate: 0.10-1ubuntu3
Version table:
*** 0.10-1ubuntu3 0
500 http://
100 /var/lib/
python:
Installed: 2.7.1-0ubuntu5
Candidate: 2.7.1-0ubuntu5
Version table:
*** 2.7.1-0ubuntu5 0
500 http://
100 /var/lib/
python-dev:
Installed: 2.7.1-0ubuntu5
Candidate: 2.7.1-0ubuntu5
Version table:
*** 2.7.1-0ubuntu5 0
500 http://
100 /var/lib/
I've also tried it with using pyOpenSSL 0.12 with "pip install pyOpenSSL==0.12" in a virtualenv and I got the same error. I believe the package I currently have are the latest stable ones for natty.
This is most likely related to https:/
I expected not to have this exception when I hit this secure HTTP server with a browser.
After some search, this is most likely a duplicate of https:/ /bugs.launchpad .net/ubuntu/ +source/ pyopenssl/ +bug/758037 . 758037 mentions that a fix has been applied in 0.10-1ubuntu3 but I still get the exception in 0.10-1ubuntu3 or even compiling from the source of 0.12 on pypi.
Any help would be appreciated. Thanks.