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
评论列表
文章目录