Ticket #315 (new defect)
SSL Handshake failure results in an exception using paste.httpserver
| Reported by: | jkp | Owned by: | ianb |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.1 |
| Component: | paste | Version: | svn-trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
If I make a call against an httpserver started with a temporary certificate using Firefox I get the following exception on the server when the client responds saying it doesn't recognise the signing authority:
KidA% python main.py ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 52268) Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Paste-1.7.2-py2.6.egg/paste/httpserver.py", line 1068, in process_request_in_thread self.finish_request(request, client_address) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 320, in finish_request self.RequestHandlerClass(request, client_address, self) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 615, in __init__ self.handle() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Paste-1.7.2-py2.6.egg/paste/httpserver.py", line 442, in handle BaseHTTPRequestHandler.handle(self) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTTPServer.py", line 329, in handle self.handle_one_request() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Paste-1.7.2-py2.6.egg/paste/httpserver.py", line 431, in handle_one_request self.raw_requestline = self.rfile.readline() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 404, in readline data = self._sock.recv(self._rbufsize) Error: [('SSL routines', 'SSL3_READ_BYTES', 'tlsv1 alert unknown ca'), ('SSL routines', 'SSL23_READ', 'ssl handshake failure')] ----------------------------------------
Surely this is a normal part of the nevgociation process and should be handled more gracefully? Once I accept the certificate in the client requests go through normally but it seems that this shouldn't be an "exceptional" situation.
Thoughts?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

