sss.py
import cherrypy
config = {
'global' : {
'server.socket_host' : '0.0.0.0',
'server.socket_port' : 8888,
'server.thread_pool' : 8,
'server.ssl_module' : 'builtin',
'server.ssl_certificate' : '/certs/cert.pem',
#'server.ssl_certificate_chain' : '/path/to/certs/ssl123_ca_bundle.pem',
'server.ssl_private_key' : '/certs/key.pem'
}
}
class App:
@cherrypy.expose
def index(self):
return 'Is this secure?'
if name == 'main':
cherrypy.quickstart(App(), '/', config)
[22/Jun/2016:17:11:29] ENGINE Listening for SIGHUP.
[22/Jun/2016:17:11:29] ENGINE Listening for SIGTERM.
[22/Jun/2016:17:11:29] ENGINE Listening for SIGUSR1.
[22/Jun/2016:17:11:29] ENGINE Bus STARTING
[22/Jun/2016:17:11:29] ENGINE Started monitor thread 'Autoreloader'.
[22/Jun/2016:17:11:29] ENGINE Started monitor thread 'TimeoutMonitor'.
[22/Jun/2016:17:11:29] ENGINE Error in 'start' listener >
Traceback (most recent call last):
File "/home/run_pyinstaller/pyins/build/sss/out00-PYZ.pyz/cherrypy.process.wspbus", line 203, in publish
File "/home/run_pyinstaller/pyins/build/sss/out00-PYZ.pyz/cherrypy.cpserver", line 167, in start
File "/home/run_pyinstaller/pyins/build/sss/out00-PYZ.pyz/cherrypy._cpserver", line 158, in httpserver_from_self
File "/home/run_pyinstaller/pyins/build/sss/out00-PYZ.pyz/cherrypy._cpwsgi_server", line 60, in __init
File "/home/run_pyinstaller/pyins/build/sss/out00-PYZ.pyz/cherrypy.wsgiserver.wsgiserver2", line 2208, in get_ssl_adapter_class
ImportError: No module named ssl_builtin
[22/Jun/2016:17:11:29] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
File "/home/run_pyinstaller/pyins/build/sss/out00-PYZ.pyz/cherrypy.process.wspbus", line 241, in start
File "/home/run_pyinstaller/pyins/build/sss/out00-PYZ.pyz/cherrypy.process.wspbus", line 221, in publish
ChannelFailures: ImportError('No module named ssl_builtin',)
--
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 cherrypy-user...@googlegroups.com.
To post to this group, send email to cherryp...@googlegroups.com.
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.