$foo = 1 ^^^^^^^^
$foo, $bar = 1 ^^^^ ^^^^
$foo, = bar ^^^^
foo = 1 ^^^^^^^
foo, = bar ^^^
Get all [gem, version] from the command line.
An argument in the form gem:ver is pull apart into the gen name and version, respectively.
Returns debugging information about this node as a string.
Returns debugging information about this location as a string.
Sets the time used in the verification. If not set, the current time is used.
See also the man page X509_VERIFY_PARAM_set_time(3).
Returns all certificate IDs in this request.
Returns an Array
of SingleResponse
for this BasicResponse
.
Returns the CertificateId
for which this SingleResponse
is.
Returns a string describing the PKey
object.
Performs a public key encryption operation using pkey
.
See decrypt
for the reverse operation.
Added in version 3.0. See also the man page EVP_PKEY_encrypt(3).
data
A String
to be encrypted.
options
A Hash
that contains algorithm specific control operations to OpenSSL. See OpenSSL’s man page EVP_PKEY_CTX_ctrl_str(3) for details.
Example:
pkey = OpenSSL::PKey.generate_key("RSA", rsa_keygen_bits: 2048) data = "secret data" encrypted = pkey.encrypt(data, rsa_padding_mode: "oaep") decrypted = pkey.decrypt(data, rsa_padding_mode: "oaep") p decrypted #=> "secret data"
Returns the time at which the session was established.