Skip to content
instance method

OpenSSL::SSL::SSLContext#options=

(::Integer ssl_options) -> ::Integer
ctx.options = integer

Sets various OpenSSL options. The options are a bit field and can be combined with the bitwise OR operator (|). Available options are defined as constants in OpenSSL::SSL that begin with OP_.

For backwards compatibility, passing nil has the same effect as passing OpenSSL::SSL::OP_ALL.

See also man page SSL_CTX_set_options(3).