method

ssl_version=

ssl_version=(p1)
public

Sets the SSL/TLS protocol version for the context. This forces connections to use only the specified protocol version.

You can get a list of valid versions with OpenSSL::SSL::SSLContext::METHODS