Great! I was looking for that! Thanks! Just one thing, it needs cherrypy installed.
David On 16 oct, 21:35, Brent G <[email protected]> wrote: > Hi, > > I couldn't find this in the posts, so I have modified thesslexample > to work with an ssl_adapter. The below works with 0.36: > > import web > > from web.wsgiserver import CherryPyWSGIServer > from web.wsgiserver.ssl_builtin import BuiltinSSLAdapter > > ssl_certificate = "path/to/ssl_certificate" > ssl_private_key = "path/to/ssl_private_key" > > CherryPyWSGIServer.ssl_adapter = > BuiltinSSLAdapter(ssl_certificate,ssl_private_key,None) > > urls = ("/.*", "hello") > app = web.application(urls, globals()) > > class hello: > def GET(self): > return 'Hello, world!' > > if __name__ == "__main__": > app.run() > > pyOpenSSLAdapter also works, buy you need the modules installed. > > -Brent -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
