setsockopt

setsockopt(level, optname, optval) Instance Public methods

new

SSLContext.new => ctxSSLContext.new(:TLSv1) => ctxSSLContext.new("SSLv23_client") => ctx Class Public methods You can get a list of valid methods with OpenSSL::SSL::SSLContext::METHODS

ciphers

ctx.ciphers => [[name, version, bits, alg_bits], ...] Instance Public methods The list of ciphers configured for this context.

ciphers=

ctx.ciphers = "cipher1:cipher2:..."ctx.ciphers = [name, ...]ctx.ciphers = [[name, version, bits, alg_bits], ...] Instance Public methods Sets the list of available ciphers for this context. Note in a server context some ciphers require the appropriate certificates. For example, an RSA cipher can only be chosen when an RSA certificate is available. See also OpenSSL::Cipher and OpenSSL::Cipher.ciphers

flush_sessions

ctx.flush_sessions(time | nil) â self Instance Public methods Removes sessions in the internal cache that have expired at time.

session_add

ctx.session_add(session) â true | false Instance Public methods Adds session to the session cache

session_cache_mode

ctx.session_cache_mode â Integer Instance Public methods The current session cache mode.

session_cache_mode=

ctx.session_cache_mode=(integer) â Integer Instance Public methods Sets the SSL session cache mode. Bitwise-or together the desired SESSION_CACHE_* constants to set. See SSL_CTX_set_session_cache_mode(3) for details.

session_cache_size

ctx.session_cache_size â Integer Instance Public methods Returns the current session cache size. Zero is used to represent an unlimited cache size.

session_cache_size=

ctx.session_cache_size=(integer) â Integer Instance Public methods Sets the session cache size. Returns the previously valid session cache size. Zero is used to represent an unlimited session cache size.