Returns a DRb::DRbSSLSocket
instance as a server-side connection, with the SSL connected. This is called from DRb::start_service
or while connecting to a remote object:
DRb.start_service 'drbssl://localhost:0', front, config
uri
is the URI
we are connected to, 'drbssl://localhost:0'
above, config
is our configuration. Either a Hash
or DRb::DRbSSLSocket::SSLConfig
Returns the X509 certificate chain (an array of strings) for the session’s socket peer, or nil
if none.
Returns a valid argument to make_expires
and the renewer or nil.
Given true
, nil
, or Numeric
, returns that value and nil
(no actual renewer). Otherwise it returns an expiry value from calling it.renew
and the renewer.
Merge a set of command options with the set of default options (without modifying the default option hash).
Indicated, based on the requested domain, if local gems should be considered.
Load a dependency management file.
Regenerates plugin wrappers after removal.
Display an error message in a location expected to get error messages. Will ask question
if it is not nil.
Terminate the application with exit code status
, running any exit handlers that might have been defined.
Return a progress reporter object chosen from the current verbosity.
Return a download reporter object chosen from the current verbosity
Merges a base path base
, with relative path rel
, returns a modified base path.
Generates a new key (pair).
If a String
is given as the first argument, it generates a new random key for the algorithm specified by the name just as ::generate_parameters
does. If an OpenSSL::PKey::PKey
is given instead, it generates a new random key for the same algorithm as the key, using the parameters the key contains.
See ::generate_parameters
for the details of options and the given block.
pkey_params = OpenSSL::PKey.generate_parameters("DSA", "dsa_paramgen_bits" => 2048) pkey_params.priv_key #=> nil pkey = OpenSSL::PKey.generate_key(pkey_params) pkey.priv_key #=> #<OpenSSL::BN 6277...