worker_ssl.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:spc 作者: whbrewer 项目源码 文件源码
def get_context(self):
        c = super(SecuredSSLServer, self).get_context()
        c.set_options(SSL.OP_NO_SSLv2)
        c.set_options(SSL.OP_NO_SSLv3)
        c.set_options(SSL.OP_NO_TLSv1)
        c.set_options(SSL.OP_NO_TLSv1_1)
        return c

# Create our own sub-class of Bottle's ServerAdapter
# so that we can specify SSL. Using just server='cherrypy'
# uses the default cherrypy server, which doesn't use SSL
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号