Skip to content
class method

OpenSSL::SSL::SSLContext.new

(?::OpenSSL::SSL::tls_version version) -> ::OpenSSL::SSL::SSLContext
SSLContext.new → ctx
SSLContext.new(:TLSv1) → ctx
SSLContext.new("SSLv23") → ctx

Creates a new SSL context.

If an argument is given, ssl_version= is called with the value. Note that this form is deprecated. New applications should use min_version= and max_version= as necessary.

See also #add_certificate #ciphers also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0