Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

OpenSSL::SSL::SSLContext#max_version=

(::OpenSSL::SSL::tls_version version) -> ::OpenSSL::SSL::tls_version
ctx.max_version = OpenSSL::SSL::TLS1_2_VERSION
ctx.max_version = :TLS1_2
ctx.max_version = 0
ctx.max_version = nil

Sets the upper bound of the supported SSL/TLS protocol version range. See min_version= for the possible values.

See also #groups= #min_version= #freeze #options also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0