Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

OpenSSL::SSL::SSLContext#max_version=

ctx.max_version = OpenSSL::SSL::TLS1_2_VERSION
ctx.max_version = :TLS1_2
ctx.max_version = nil

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

See also #freeze #min_version= #flush_sessions #options also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0