Cherrypy's SSL builtin..

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Cherrypy's SSL builtin..

Eugen Hildt
Hi everyone! I got a cherrypy server running that uses cherrypy's builtin ssl.
After i updated the whole system i get following error:

 
[14/May/2017:16:15:32] ENGINE Bus STARTING
[14/May/2017:16:15:32] ENGINE Serving on https://X.X.X.X
[14/May/2017:16:15:32] ENGINE Bus STARTED
[14/May/2017:16:15:32] ENGINE Error in HTTPServer.tick
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 1343, in start
    self.tick()
  File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 1411, in tick
    s, ssl_env = self.ssl_adapter.wrap(s)
  File "/usr/lib/python3.6/site-packages/cheroot/ssl/builtin.py", line 73, in wrap
    server_side=True)
  File "/usr/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/usr/lib/python3.6/ssl.py", line 808, in __init__
    self.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
OSError: [Errno 0] Error



Yet it seems to still operate.
I tried to switch to pyopenssl but that one is not working at all.
Any suggestions how to solve this or can i just ignore the error output?  

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cherrypy's SSL builtin..

Stephan Semerad
What is your Config?

I just implemented SSL with Python with a CA certificate from Comodo. No issues. 

On Sunday, May 14, 2017 at 6:31:52 PM UTC+2, Eugen Hildt wrote:
Hi everyone! I got a cherrypy server running that uses cherrypy's builtin ssl.
After i updated the whole system i get following error:

 
[14/May/2017:16:15:32] ENGINE Bus STARTING
[14/May/2017:16:15:32] ENGINE Serving on <a href="https://X.X.X.X" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2FX.X.X.X\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH1UctD3wLaQKAHHKP1_6U9oDa_ow&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2FX.X.X.X\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH1UctD3wLaQKAHHKP1_6U9oDa_ow&#39;;return true;">https://X.X.X.X
[14/May/2017:16:15:32] ENGINE Bus STARTED
[14/May/2017:16:15:32] ENGINE Error in HTTPServer.tick
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 1343, in start
    self.tick()
  File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 1411, in tick
    s, ssl_env = self.ssl_adapter.wrap(s)
  File "/usr/lib/python3.6/site-packages/cheroot/ssl/builtin.py", line 73, in wrap
    server_side=True)
  File "/usr/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/usr/lib/python3.6/ssl.py", line 808, in __init__
    self.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
OSError: [Errno 0] Error



Yet it seems to still operate.
I tried to switch to pyopenssl but that one is not working at all.
Any suggestions how to solve this or can i just ignore the error output?  

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cherrypy's SSL builtin..

Eugen Hildt
[global]
server
.socket_host: "192.168.2.110"
server
.socket_port: 443
server
.socket_timeout: 300
server
.thread_pool: 10
tools
.log_headers.on: True
tools
.encode.on: True
tools
.encode.encoding: "utf-8"
tools
.sessions.on: True
tools
.gzip.on: True
tools
.sessions.storage_class: cherrypy.lib.sessions.MemcachedSession
log
.screen: True
response
.timeout: 300
request
.show_tracebacks: True
engine
.autoreload.on: True
engine
.timeout_monitor.on: True
tools
.caching.on: True
tools
.caching.delay: 3600
server
.ssl_module: 'builtin'
server
.ssl_certificate: "server/ssl/cert.pem"
server
.ssl_private_key: "server/ssl/pkey.pem"

[/]
tools.staticdir.on: True
tools.staticdir.dir: '.'
tools.staticdir.root: cherrypy.Application.currentDir_s
request.dispatch: cherrypy.dispatch.MethodDispatcher()

[/css]
tools.staticdir.on: True
tools.staticdir.dir: "server/
css"

[/js]
tools.staticdir.on: True
tools.staticdir.dir: "
server/js"

[/img]
tools.staticdir.on: True
tools.staticdir.dir: "
server/img"

Im running Cherrypy on ArchLinux. It was running fine till the recent Cherrypy/ArchLinux update.
I read that on Debian the same exception is thrown..

[18/Jun/2017:14:45:22] ENGINE Error in HTTPServer.tick
Traceback (most recent call last):
 
File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 1343, in start
   
self.tick()
 
File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 1411, in tick
    s
, ssl_env = self.ssl_adapter.wrap(s)
 
File "/usr/lib/python3.6/site-packages/cheroot/ssl/builtin.py", line 73, in wrap
    server_side
=True)
 
File "/usr/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context
=self, _session=session)
 
File "/usr/lib/python3.6/ssl.py", line 808, in __init__
   
self.do_handshake()
 
File "/usr/lib/python3.6/ssl.py", line 1061, in do_handshake
   
self._sslobj.do_handshake()
 
File "/usr/lib/python3.6/ssl.py", line 683, in do_handshake
   
self._sslobj.do_handshake()
OSError: [Errno 0] Error

Yet SSL is still working thou..

Am Dienstag, 6. Juni 2017 22:48:53 UTC+2 schrieb Stephan Semerad:
What is your Config?

I just implemented SSL with Python with a CA certificate from Comodo. No issues. 

On Sunday, May 14, 2017 at 6:31:52 PM UTC+2, Eugen Hildt wrote:
Hi everyone! I got a cherrypy server running that uses cherrypy's builtin ssl.
After i updated the whole system i get following error:

 
[14/May/2017:16:15:32] ENGINE Bus STARTING
[14/May/2017:16:15:32] ENGINE Serving on <a href="https://X.X.X.X" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2FX.X.X.X\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH1UctD3wLaQKAHHKP1_6U9oDa_ow&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2FX.X.X.X\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH1UctD3wLaQKAHHKP1_6U9oDa_ow&#39;;return true;">https://X.X.X.X
[14/May/2017:16:15:32] ENGINE Bus STARTED
[14/May/2017:16:15:32] ENGINE Error in HTTPServer.tick
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 1343, in start
    self.tick()
  File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 1411, in tick
    s, ssl_env = self.ssl_adapter.wrap(s)
  File "/usr/lib/python3.6/site-packages/cheroot/ssl/builtin.py", line 73, in wrap
    server_side=True)
  File "/usr/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/usr/lib/python3.6/ssl.py", line 808, in __init__
    self.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
OSError: [Errno 0] Error



Yet it seems to still operate.
I tried to switch to pyopenssl but that one is not working at all.
Any suggestions how to solve this or can i just ignore the error output?  

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cherrypy's SSL builtin..

Stephan Semerad
In reply to this post by Eugen Hildt


On Sunday, May 14, 2017 at 6:31:52 PM UTC+2, Eugen Hildt wrote:
Hi everyone! I got a cherrypy server running that uses cherrypy's builtin ssl.
After i updated the whole system i get following error:

 
[14/May/2017:16:15:32] ENGINE Bus STARTING
[14/May/2017:16:15:32] ENGINE Serving on <a href="https://X.X.X.X" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2FX.X.X.X\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH1UctD3wLaQKAHHKP1_6U9oDa_ow&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2FX.X.X.X\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH1UctD3wLaQKAHHKP1_6U9oDa_ow&#39;;return true;">https://X.X.X.X
[14/May/2017:16:15:32] ENGINE Bus STARTED
[14/May/2017:16:15:32] ENGINE Error in HTTPServer.tick
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 1343, in start
    self.tick()
  File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 1411, in tick
    s, ssl_env = self.ssl_adapter.wrap(s)
  File "/usr/lib/python3.6/site-packages/cheroot/ssl/builtin.py", line 73, in wrap
    server_side=True)
  File "/usr/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/usr/lib/python3.6/ssl.py", line 808, in __init__
    self.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
OSError: [Errno 0] Error



Yet it seems to still operate.
I tried to switch to pyopenssl but that one is not working at all.
Any suggestions how to solve this or can i just ignore the error output?  


hmmm... 
my Config is a bit simpler but it works . 
not sure where the error comes from. 

        #uncomment in productions
        'server.environment': 'production',
        'engine.autoreload.on': True,
        'engine.autoreload.frequency': 5,

        'server.socket_host': '0.0.0.0',
        'server.socket_port':443, # 8080 if SLL is used

        'server.ssl_module':'pyopenssl', # 
        'server.ssl_certificate':'site.me.crt', # 
        'server.ssl_private_key':'site.me.key', # Key needed to be created
        'server.ssl_certificate_chain' : 'site.me.ca-bundle' # Bundle received
 

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.