Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. 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 #session_reused? #state #session_new_cb #stop also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0