Through cherrypy:
cherrypy.tree.mount(Root(), config=conf)
cherrypy.server.thread_pool = 30
cherrypy.server.ssl_private_key = 'something.key'
cherrypy.server.ssl_certificate = 'something.crt'
cherrypy.server.socket_port = 443
cherrypy.server.socket_host = '0.0.0.0'
http_server = cherrypy._cpserver.Server()
http_server.thread_pool = 30
http_server.socket_port = 80
http_server.socket_host = '0.0.0.0'
http_server.subscribe()
cherrypy.engine.start()
cherrypy.engine.block()
WSGI Interface, SSL is handled by application server container (Apache or nginx for example):
application = cherrypy.Application(Root(), '/', config=conf)