session_cache_stats

ctx.session_cache_stats â Hash Instance Public methods Returns a Hash containing the following keys: :accept Number of started SSL/TLS handshakes in server mode :accept_good Number of established SSL/TLS sessions in server mode :accept_renegotiate Number of start renegotiations in server mode :cache_full Number of sessions that were removed due to cache overflow :cache_hits Number of successfully reused connections :cache_misses Number of sessions proposed by clie

session_remove

ctx.session_remove(session) â true | false Instance Public methods Removes session from the session cache

set_params

set_params(params={}) Instance Public methods Sets the parameters for this SSL context to the values in params. The keys in params must be assignment methods on SSLContext. If the #verify_mode is not VERIFY_NONE and #ca_file, #ca_path and #cert_store are not set then the system default certificate store is used.

setup

ctx.setup => Qtrue # first timectx.setup => nil # thereafter Instance Public methods This method is called automatically when a new SSLSocket is created. Normally you do not need to call this method (unless you are writing an extension in C).

ssl_version=

ctx.ssl_version = :TLSv1ctx.ssl_version = "SSLv23_client" Instance Public methods You can get a list of valid versions with OpenSSL::SSL::SSLContext::METHODS

new

new(svr, ctx) Class Public methods

accept

accept() Instance Public methods

close

close() Instance Public methods

listen

listen(backlog=5) Instance Public methods

shutdown

shutdown(how=Socket::SHUT_RDWR) Instance Public methods