028-86922220

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

用cherrypy提供SSL支持

import web

from web.wsgiserver import CherryPyWSGIServer

CherryPyWSGIServer.ssl_certificate = "path/to/ssl_certificate"
CherryPyWSGIServer.ssl_private_key = "path/to/ssl_private_key"

urls = ("/.*", "hello")
app = web.application(urls, globals())

class hello:
    def GET(self):
        return 'Hello, world!'

if __name__ == "__main__":
    app.run()

文章题目:用cherrypy提供SSL支持
文章路径:http://www.tsicrk.com/article/jscdcg.html

其他资讯

让你的专属顾问为你服务

1.7564s