pyopenssl
pyopenssl copied to clipboard
How do I turn off renegotiation?
If you have a SSLContext, you can set the appropriate option:
SSL_OP_NO_RENEGOTIATION = 0x40000000
ctx.set_options(SSL_OP_NO_RENEGOTIATION)
To add to the answer above, the NO_RENEGOTIATION constant is also provided by PyOpenSSL:
from OpenSSL import SSL
ctx.set_options(SSL.OP_NO_RENEGOTIATION)
@mhils I think this one can be closed