Verifies the signature
for the data
using a public key pkey
. Unlike verify
, this method will not hash data
with digest
automatically.
Returns true
if the signature is successfully verified, false
otherwise. The caller must check the return value.
See sign_raw
for the signing operation and an example code.
Added in version 3.0. See also the man page EVP_PKEY_verify(3).
signature
A String
containing the signature to be verified.
If the Request
specified to request the TSA certificate (Request#cert_requested = true), then this field contains the certificate of the timestamp authority.
Returns the Response
in DER-encoded form.
Returns the message imprint digest. For valid timestamps, this is the same value that was already given in the Request
. If status is GRANTED or GRANTED_WITH_MODS, this is never nil
.
mi = token_info.msg_imprint puts mi -> "DEADBEEF"
Returns time when this timestamp token was created. If status is GRANTED or GRANTED_WITH_MODS, this is never nil
.
Returns the TokenInfo
in DER-encoded form.
Set
the message imprint digest.
Returns the message imprint (digest) of the data to be timestamped.
Specify whether the response shall contain the timestamp authority’s certificate or not. The default value is true
.
Indicates whether the response shall contain the timestamp authority’s certificate or not.
DER-encodes this Request
.
General callback for OpenSSL
verify
Adds the OpenSSL::X509::Certificate
cert to the certificate store.
See also the man page X509_STORE_add_cert(3).
Gets credentials based on user, domain or both. If both are nil, an error occurs
Ensures that :SSLCertificate and :SSLPrivateKey have been provided or that a new certificate is generated with the other parameters provided.