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::SSLSocket#ssl_version

() -> ::OpenSSL::SSL::tls_version
ssl.ssl_version => String

Returns a String representing the SSL/TLS version that was negotiated for the connection, for example “TLSv1.2”.

See also #ssl_read #ssl_write #ssl_connect #state also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0