Validates the Diffie-Hellman parameters associated with this instance. It checks whether a safe prime and a suitable generator are used. If this is not the case, false
is returned.
Sets the parameters for this SSL
context to the values in params
. The keys in params
must be assignment methods on SSLContext
.
If the verify_mode
is not VERIFY_NONE and ca_file
, ca_path
and cert_store
are not set then the system default certificate store is used.
You can get a list of valid versions with OpenSSL::SSL::SSLContext::METHODS
Adds session
to the session cache
Removes session
from the session cache
Removes sessions in the internal cache that have expired at time
.
Initiates the SSL/TLS handshake as a client in non-blocking manner.
# emulates blocking connect begin ssl.connect_nonblock rescue IO::WaitReadable IO.select([s2]) retry rescue IO::WaitWritable IO.select(nil, [s2]) retry end
By specifying ‘exception: false`, the options hash allows you to indicate that connect_nonblock
should not raise an IO::WaitReadable
or IO::WaitWritable
exception, but return the symbol :wait_readable or :wait_writable instead.
Writes string
to the SSL
connection in a non-blocking manner. Raises an SSLError
if writing would block.
Returns a String representing the SSL/TLS version that was negotiated for the connection, for example “TLSv1.2”.
Returns true if a reused session was negotiated during the handshake.
See the OpenSSL
documentation for EC_builtin_curves()
Takes a String and parses it out
Content: [ String tag_name, Hash
attributes ]